Gossamer Forum
Home : General : Internet Technologies :

uppercase to lowercase web address script

Quote Reply
uppercase to lowercase web address script
Hi all,

I need a script and I am not sure if this is possible.
When user types in lowercase http://www.myserver.com/27holes.htm they see
the page.
When user types in uppercase http://www.myserver.com/27HOLES.HTM they do
not see the page because Unix server is case sensitive.
Is there any way for a script to make it possible for user to see the page
if they type in url using uppercase?
let me know about this.

Thanks,

Beck
Quote Reply
Re: [Beck] uppercase to lowercase web address script In reply to
Don't know, but that would be very interesting. Perhaps some ReWrite thing....Smile

------------------------------------------
Quote Reply
Re: [DogTags] uppercase to lowercase web address script In reply to
I would be also interested in a solution.

Best regards,
Webmaster33


Paid Support
from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...
Quote Reply
Re: [Beck] uppercase to lowercase web address script In reply to
Hello Beck,

1. Look for info on using : LoadModule speling_module modules/mod_speling.so

2. Add a perl handler for 404 documents, in which you may search for a lower case file name or send out a 404 error page.

3. Add a 27HOLES.HTM file with a meta refresh to 27holes.htm

The best solution depends on how much of an impact a particular method will cause to the normal operation.

People are supposed to get a 404 file not found generally if they spell something wrong / use mixed case.

Idea 2 above might be the lowest impact and a good solution if you have 27HoLeS.HtM requests also.

Hope this helps.

cornball