Jump to content

[SOLVED] Can RedirectMatch 301 ignore lower- and uppercase?


redknight

Recommended Posts

I've looked in google on how to let RedirectMatch ignore lower- and uppercase, but still no luck.

 

My code in htaccess....

 

RedirectMatch 301 /(.*)badword(.*) http://www.microsoft.com/
RedirectMatch 301 /(.*)Badword(.*) http://www.microsoft.com/

 

Now I can filter out "badword" and "Badword", but offcourse no "BaDwOrd"...

 

What am I doing wrong? ???

 

Ahhh x.x guess [NC] isn't valid with RedirectMatch...

 

 

You could do:

 

RewriteRule (.*)badword(.*) http://microsoft.com/ [NC,R=301]

TY ver much. Now it's working ;D

 

The strange thing is that it only worked when I put this on the next line behind

RewriteEngine on

Options +FollowSymLinks

Options +SymlinksIfOwnerMatch

 

I also use "RewriteRule ^([^/]+)blabla [QSA,L]" to rewrite urls. So it's not working after this.

 

 

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.