Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
07-15-2012, 09:06 PM #1
Using .htaccess to forward lower-case directories?
I would like to use my .htaccess to redirect users from lower-case directory names to the upper-case directory names when they exist. (e.g. example.com/directory to example.com/DIRECTORY when the directory "DIRECTORY" exists)
Is this possible? Thanks!
07-15-2012, 09:24 PM #2
- Join Date
- Oct 2004
- Thanked 26 Times in 26 Posts
You would need a RewriteMap which requires access to the server configuration.
You could use a custom 404 error handler and a server-side script.
ErrorDocument 404 /custom404handler.php