Application to fix case sensitive problem when move your website website to linux server
January 20, 2010
I have a trouble with case sensitive when moving to a linux server. I tried to google around but couldn’t find the solution for this. The only way I have in mind is manually change all the links in my pages which is hundreds of them. Just about impossible, especially for a lazy guy like me. So I decided to write a quick small application to do this for me. I think I should share it here. Even not a many people have this problem but when they got it, at least there is some help.
What is this?
It’s just a simple app with two functions.
1, Enter source and destination folders. The application will covert all the files’ name to lower case and copy it over to the destination folders. It also go into HTML, JS and CSS files find and convert all the links (href, src, url) to lower case
2, The second function is even simplier. You copy the HTML into the original HTML box. the application will automatically scan the HTML find the links and covert them to lower case. I use this function to convert my articles.
I only use it partial as I worried I could changes something I shouldn’t. This lower the chance I lost my information and if something goes wrong I know where to fix.
This isn’t a completed application or something like that. Just a quick fix for this bad situation. Hope it could help people get into this trouble.
Note: Always keep a back up in case this app mess your site up.
The application doesn’t change the direct link such as: http://www.Google.com.
If you have a better way (such as turn off case sensitive without touching apache, I don’t have the permission to change it), I’ll really welcome the help.
Application
Case Sensitive Fix-ToLowerCase (36)
I put the source here as well, feel free to use it the way you like.
Fix Case Sensitive - ToLowerCase source code (28)




you are a life saver!!!!!
that`s wonderful, after a long look around I found your small tool and it made exactly what I want it shoud do. Thank you very much. I`ll try it tomorrow on the whole webside
I know it becomes handy sometime
Trackbacks