- Code: Select all
RewriteCond %{QUERY_STRING} category=([^&]+)
RewriteRule ^(index\.html)$ /?blah=abc&oldcategory=%1 [QSA,L]
I get a 500 Internal error using this syntax. How can I best accomplish this? Thanks.
RewriteCond %{QUERY_STRING} category=([^&]+)
RewriteRule ^(index\.html)$ /?blah=abc&oldcategory=%1 [QSA,L]
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{QUERY_STRING} ^(.*&)category=([^&]+)(&.*)?$ [NC]
RewriteRule ^(index\.html)?$ /?%1blah=abc&oldcategory=%2%3 [L]
Return to Friendly URLs with Mod_Rewrite
Users browsing this forum: No registered users and 6 guests