Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-15-2012, 09:06 PM   PM User | #1
Mooseman
Regular Coder

 
Mooseman's Avatar
 
Join Date: Sep 2010
Posts: 118
Thanks: 7
Thanked 3 Times in 3 Posts
Mooseman is an unknown quantity at this point
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!
Mooseman is offline   Reply With Quote
Old 07-15-2012, 09:24 PM   PM User | #2
schleppel
Regular Coder

 
Join Date: Oct 2004
Posts: 330
Thanks: 0
Thanked 13 Times in 13 Posts
schleppel is an unknown quantity at this point
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.
Code:
ErrorDocument 404 /custom404handler.php
schleppel is offline   Reply With Quote
Reply

Bookmarks

Tags
htaccess

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:06 AM.


Advertisement
Log in to turn off these ads.