sKunKbad Posted October 10, 2008 Share Posted October 10, 2008 This rewritecond/rewriterule set redirects to the query-string version of /test/good_url.php to the non-query-string version. How come [NC] doesn't work? If I try to go to test/gOOd_URL.php I get a 404 error. I tried using [N,R=301] on the rewrite rule itself, but that didn't make a difference. Here's what I have: RewriteCond %{THE_REQUEST} ^GET\ /good_url\.php.*\ HTTP/ [NC] RewriteCond %{QUERY_STRING} !^$ RewriteRule ^good_url.php(.*)$ http://www.yourdomain.com/good_url.php? [R=301] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.