I'm using the following code to rewrite my urls and thankfully it's working:
RewriteCond %{REQUEST_URI} ^/([^/]+)/([^/]+)/([^/]+)/([^/]+)
RewriteRule ^(.*) /index.php?menu=%1&cat=%2&artist=%3&title=%4 [L]
but I want it to work for every directory. I tried the following but it doesn't seem to work:
RewriteCond %{REQUEST_URI} ^/([^/]+)/([^/]+)/([^/]+)
RewriteRule ^(.*) /index.php?menu=%1&cat=%2&artist=%3 [L]
RewriteCond %{REQUEST_URI} ^/([^/]+)/([^/]+)
RewriteRule ^(.*) /index.php?menu=%1&cat=%2 [L]
RewriteCond %{REQUEST_URI} ^/([^/]+)
RewriteRule ^(.*) /index.php?menu=%1 [L]
Can anybody help?
Bookmarks