Membership is FREE – with unlimited access to all features, tools, and discussions. Premium accounts get benefits like banner ads and newsletter exposure. ✅ Signature links are now free for all. 🚫 No AI-generated (LLM) posts allowed. Share your own thoughts and experience — accounts may be terminated for violations.

Mod Rewrite code

Status
Not open for further replies.

VisualDigits

The One
Legacy Exclusive Member
Joined
Mar 8, 2005
Messages
1,480
Reaction score
0
This is a url:
http://www.slack-time.com/music-vid...American-Idiot/ that works with my current mod rewrite, however http://www.slack-time.com/music-videos/Rock-Music/ doesn't, so I want my mod rewrite to work for every virtual directory, such as:

http://www.slack-time.com/music-videos/
http://www.slack-time.com/music-videos/Rock-Music/
http://www.slack-time.com/music-vid...usic/Green-Day/

I hope it clarifies what my intentions are.

I found the code thanks to a guy called Nintendo, here it is:
Code:
Options +Indexes
Options +FollowSymlinks
RewriteEngine on
RewriteBase /
RewriteRule ^(.*)/(.*)/(.*)/(.*)/$ index.php?menu=$1&cat=$2&artist=$3&title=$4 [L]
RewriteRule ^(.*)/(.*)/(.*)/$ index.php?menu=$1&cat=$2&artist=$3 [L]
RewriteRule ^(.*)/(.*)/$ index.php?menu=$1&cat=$2 [L]
RewriteRule ^(.*)/$ index.php?menu=$1 [L]
 
Status
Not open for further replies.

Who has viewed this thread (Total: 1) View details

The Rule #1

Do not insult any other member. Be polite and do business. Thank you!

Members Online

No members online now.

Premium Members

Upcoming events

Our Mods' Businesses

*the exceptional businesses of our esteemed moderators

Top Bottom