Home » Htaccess Tools » Htaccess Questions  » redirect based on case (upper and lowercase entry of urls)
redirect based on case [message #1714] Thu, 04 March 2010 02:43
kpimichael  is currently offline kpimichael
Messages: 1
Registered: March 2010
I have a directory called frogpond i want to make sure that users can get to it if they put in FROGPOND or FrogPond in the url.

For instance. http://mywebsite.com/FROGPOND.... or
http://mywebsite.com/FrogPond....

I want it to go to http://mywebsite.com/frogpond/.....

It seems simple enough and i have tried several variations...but i never get it to work... and i get no errors...

Here is the code that i put in at the root level of the domain.
## This just makes sure that if anyone
## tries to access a directory by upper or lower case
## that they can get to it.   Make sure the real directory
## is in lowercase
RewriteEngine On
Options +FollowSymlinks
RewriteRule ^FROGPOND http://mysite.com/frogpond/from.html
RewriteRule ^FrogPond http://mysite.com/frogpond/from.html

Any ideas on what i am doing wrong or how it could be done right Smile
Previous Topic:Authentication on specific query string?
Next Topic:How do I redirect hotlinks to my gallery?
Goto Forum:
  


Current Time: Sat Jul 31 06:28:37 CEST 2010

Powered by: FUDforum 3.0.0.
Copyright ©2001-2009 FUDforum Bulletin Board Software