Forum Moderators: phranque

Message Too Old, No Replies

IIS -> Apache -- case sensitive, arg!

How to make Apache case insensitive

         

z0diac

8:30 pm on May 14, 2003 (gmt 0)

10+ Year Member



I have a large web site made up of some some 400+ .html files. In file/directory structure on disc I often use capital letters for large file and directory names at the beginning of each word, but use all lower case in the .html file - not a problem with IIS since it is case insensitive. I'm trying to move over to a new host using Apache on Linux and all these files are coming up as 404 errors since the html reference is in lowercase, and the actual file or directory name might use upper case in parts of the name.

Is there any quick and simple way to make Apache on Linux case insensitive or do I have to individually go through every file and directory (7122 files, 1037 directories) and manually rename each one to lower case?

SEO practioner

1:06 am on May 15, 2003 (gmt 0)

10+ Year Member



Hello Zodiac and welcome to webmaster world

Gee, I don't want to rain bad news on you but Unix AND Linux, (hence Apache) IS case sensitive- always has been.

Not much you can do. What I would suggest, however is this:

Always write all your filenames in lower case letters, that way, you will always be consistent and all will be running smoothly all the time.

I'm afraid you will have to change all your offending filenames to their corresponding lower (or uppercases).

And that includes all directories and sbudirectories too.

Good luck
SEO

bigM_sh

3:01 am on May 15, 2003 (gmt 0)

10+ Year Member



Hi

You will have to rename all the files, but you don't have to do it manually.

there are plenty of tools available that can do the conversion automatically.
I haven't tested any, but there seem to be alot.
Just do a search for batch rename

HTH

bigM

z0diac

3:09 am on May 15, 2003 (gmt 0)

10+ Year Member



Thanks for the responses guys. Yah, I rm -d -r * 'd everything and reuploaded with the "force lowercase" option. Now I'll just have to go through each html file and make sure all the references are lowercase.

PsychoTekk

8:24 am on May 15, 2003 (gmt 0)

10+ Year Member



you can also use some linkchecker tool such as xenu, way easier :)