Membership is FREE, giving all registered users unlimited access to every DNForum feature, resource, and tool! Optional membership upgrades unlock exclusive benefits like profile signatures with links, banner placements, appearances in the weekly newsletter, and much more - customized to your membership level!

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

Premium Members

Upcoming events

Our Mods' Businesses

*the exceptional businesses of our esteemed moderators

Top Bottom