Forum Moderators: phranque
I recently acquired the rights to a website that was written in .asp and was hosted on a windows machine and I am in the process of converting the stuff over to php and running on Apache.
The problem is there is hundreds of pages and they call thousands of images. It seems either asp or apache was configured so that the images were not case-sensative so the guy calls image.jpg and the actual filename is IMage.jpg and it worked for him. When I uploaded the files to my server they no longer work. If I change IMage.jpg to image.jpg it will work but I do not want to do this for all the thousands of images that this affects.
Is there a setting somewhere in Apache or maybe php that can help me?
Thanks
The difference between the precious host and your host is the OS: Windows is not case-sensitive, while Linux is. You don't mention the OS for the new host, but most Apache/PHP setups are Linux (though not all). I did a quick pass through the Apache documentation, the closest match I could find to help you out is mod_speling. [httpd.apache.org...] It sounds like this can return URLs with the wrong case, although I've never used it myself. I think this module is not one of the default ones as well, so your host may or may not have it installed. In the long run, you are probably better off converting all the images to the same case; if you are on Linux, a shell or perl script could be written quite easily to do this automatically.
Chad