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] Link to comment https://forums.phpfreaks.com/topic/127804-nc-not-working/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.