Jump to content

[NC] not working


sKunKbad

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.