wilsonf1 Posted July 28, 2011 Share Posted July 28, 2011 I have the simplest of redirects in my htaccess fileRedirect /folder /folder.htmBut if someone hits mydomain/FoldeR - the redirect will not kick in and they will get a 404How can I get round this?Thanks! Link to comment Share on other sites More sharing options...
jeffman Posted July 28, 2011 Share Posted July 28, 2011 try adding this to the end of that statement:[NC]It makes the rule case-insensitive. Link to comment Share on other sites More sharing options...
wilsonf1 Posted July 28, 2011 Author Share Posted July 28, 2011 try adding this to the end of that statement:[NC]It makes the rule case-insensitive.I had actually tried that but got an error 500 - can you tell me in wamp where i need to look for a log on the error please? Link to comment Share on other sites More sharing options...
wilsonf1 Posted July 28, 2011 Author Share Posted July 28, 2011 Infact.... [NC] does nothing locally in wamp, no effect at all.On my live site it causes an error 500 of which I can't access an error log unfortunately Link to comment Share on other sites More sharing options...
Ingolme Posted July 28, 2011 Share Posted July 28, 2011 Apparently, this directive doesn't support [NC] or other modifiers: http://httpd.apache.org/docs/current/mod/m...s.html#redirectRedirectMatch allows you to use a regular expression. Something like this could work: RedirectMatch ^/[Ff][Oo][Ll][Dd][Ee][Rr]$ /folder.htm Link to comment Share on other sites More sharing options...
wilsonf1 Posted July 29, 2011 Author Share Posted July 29, 2011 Apparently, this directive doesn't support [NC] or other modifiers: http://httpd.apache.org/docs/current/mod/m...s.html#redirectRedirectMatch allows you to use a regular expression. Something like this could work:RedirectMatch ^/[Ff][Oo][Ll][Dd][Ee][Rr]$ /folder.htm Hmmm that looks pretty complicated for a simpleton like me! I tried it and it didn't redirect me to folder.htm, i just got a page not foundis there no way I can put the whole incoming url in lower case, then my current lower case direct rules will be valid no? Link to comment Share on other sites More sharing options...
wilsonf1 Posted August 8, 2011 Author Share Posted August 8, 2011 BUMP!Is there no way I can put the whole incoming url in lower case, then my current lower case direct rules will be valid, no? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.