• Welcome to DNForum.com - Domain Investor Forum, Free Domain Marketplace and a community for 45+ domain pros
    If you are new to domains and looking to buy, sell and learn about domains then you have come to the right place. DNForum is the oldest global domain name community on the internet and continues to grow every day. There are over 45,000 domainers on DNForum doing everything from buying domains, selling domains, using our free in-house built tools, learning about domains and discussing domains. Take a minute and Register.

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.
Back
Top Bottom