logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Apache Redirect rule - case insensitive possible??
Author
flatcircle



Joined: 27 Jun 2006
Posts: 79

PostPosted: Mon 16 Nov '09 16:00    Post subject: Apache Redirect rule - case insensitive possible?? Reply with quote

Hello

I have a lot of redirects for my site.

I use Redirect 301 /somedir http://www.somesite.com/

Problem is that the redirects are case sensitive.
When I try /SOMEdir, I get a page not found.

How can I fix that all my redirects will work in lower and uppercase?
I already tried mod_speling.so but seems that this will only fix the case-problem when real directories are present in the root, this doesn't work for redirects.

Kind regards.
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Mon 16 Nov '09 20:29    Post subject: Reply with quote

[NC] no case

RewriteCond %{REMOTE_HOST} ^host1.* [NC,OR]
RewriteCond %{REMOTE_HOST} ^host2.* [NC]
RewriteRule ...some special stuff for any of these hosts...
Back to top


Reply to topic   Topic: Apache Redirect rule - case insensitive possible?? View previous topic :: View next topic
Post new topic   Forum Index -> Apache