> -----Original Message-----
> From: Xavi Gracia [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, May 17, 2006 10:58 AM
> To: users@httpd.apache.org
> Subject: [EMAIL PROTECTED] Case insensitive apache ?
> 
> 
> Hi !
> 
> Sorry a lot if this question has been asked before but i have 
> been unable 
> to find any message or webpage about.
> 
> I have just migrated to a apache linux server from a windows 
> machine and it 
> seems that some of the people that was making the website 
> doesn't follow 
> the golden rule of the web design: all in lower letters !!!... :-(
> 
> The result has been a lot of broken links in the new server.
> 
> Now, i have the option to check all the pages to put all in 
> lower letters 
> or maybe there's a solution for apache to ignore lower / 
> capital letters in 
> the filenames?

Check out mod_speling [sic]...

> 
> Sorry again if this question has been asked before... (i have 
> that feeling)
> 
> Thanks a lot for any help
> 
> p.s
> If there's no way, maybe some of you would know a way to 
> convert all the 
> filenames to lower letters in unix. Thanks !

I've done things like this by writing a short perl script.. You need to loop 
over the filenames and use "lc" and "rename", eg:

        chdir($mydir);
        while (<*>) {
          my $new_name = lc;
          rename($_, $new_name);
        }       

It goes without saying that this piece of code is untested and could really 
screw up your files if you don't carefully test it first (replace the rename 
with lots of prints to say exactly what it's going to do and then check it in 
lots of dirs first...)

Things I'd worry about:

- are there any collisions after switching to lc? Eg, make sure you don't 
already have welcome.html and Welcome.html...
- do links *inside* files use case-sensitive URLs 

Although it might be tough, in the long run it's probably better to clean up 
the files than to mess around with apache...

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored. 


> 
> 
> 
> Xavi Gracia
> Dpto. Informática
> Devir Iberia
> Telf. 93 238 98 73
> www.devir.es 
> 
> 
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP 
> Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: [EMAIL PROTECTED]
>    "   from the digest: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
Diese E-mail ist eine private und persönliche Kommunikation. Sie hat keinen 
Bezug zur Börsen- bzw. Geschäftstätigkeit der SWX Gruppe. This e-mail is of a 
private and personal nature. It is not related to the exchange or business 
activities of the SWX Group. Le présent e-mail est un message privé et 
personnel, sans rapport avec l'activité boursière du Groupe SWX.
 
 
This message is for the named person's use only. It may contain confidential, 
proprietary or legally privileged information. No confidentiality or privilege 
is waived or lost by any mistransmission. If you receive this message in error, 
please notify the sender urgently and then immediately delete the message and 
any copies of it from your system. Please also immediately destroy any 
hardcopies of the message. You must not, directly or indirectly, use, disclose, 
distribute, print, or copy any part of this message if you are not the intended 
recipient. The sender's company reserves the right to monitor all e-mail 
communications through their networks. Any views expressed in this message are 
those of the individual sender, except where the message states otherwise and 
the sender is authorised to state them to be the views of the sender's company.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to