[Website] How to make folder & filenames case-insensitive

[Website] How to make folder & filenames case-insensitive

I like using mixed-case because it is easier to read. However I just discovered that my website is case-sensitive.

I would like it to be case-insensitve, so the people don't get "Page Not Found" if they don’t type the right case.

For example, if I have a webpage named:
   www.MyPersonalWebsite123.com/NewYork.htm
The user should be able to type any permutation of upper and lower case letters
   www.MyPersonalWebsite123.com/NewYork.htm
   www.MyPersonalWebsite123.com/NEwYork.htm
   www.MyPersonalWebsite123.com/NEWYork.htm
   www.MyPersonalWebsite123.com/NEWYOrk.htm
   www.MyPersonalWebsite123.com/NEWYORk.htm
   www.MyPersonalWebsite123.com/NEWYORK.htm
   www.MyPersonalWebsite123.com/NeWYorK.htm
  etc, etc, etc  

Yes, I know that one solution would be to make a "redirect" file for each permutation.
But that would be crazy.

I called up the hosting company (GoDaddy) and was told that my account is Linux, and that's the way it is with Linux. However I was told that there may be a way to get around this with scripting.

I have no idea what they mean.
Any suggestions would be greatly appreciated.

FYI, I noticed that on the GoDaddy site itself, folder and filenames are not case-sensitve (although the site is Linux, I was told).
So the following spellings will all end up at the same page
     https://www.godaddy.com/coupons.aspx
     https://www.godaddy.com/coUpOns.aspx
     https://www.godaddy.com/couPONS.aspx
     etc, etc.

Gary
CE101Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dave BaldwinFixer of ProblemsCommented:
The 'aspx' at the end means that those are on a Windows server.  There is a way with Apache on Linux using 'mod_speling' but I just checked on my Godaddy Linux account and it is not enabled.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
CE101Author Commented:
Hi Dave:

Thank you for your response.
I called GoDaddy to ask whether the  'mod_speling' module is installed.
The CSR wasn’t sure, so he showed me how to add the CheckCaseOnly Directive to On in the .htaccess file.
This did not solve the problem, so he concluded that  'mod_speling' is not a standard module installed on their shared Linux servers.

He also refered me to the following article
http://stackoverflow.com/questions/2021796/make-folders-in-apache-case-insensitive-using-htaccess
It suggests adding Rewrite Conditions and Rules to the .htaccess file.  
Eg.
   RewriteCond %{REQUEST_FILENAME} !-d
   RewriteRule ^student-government/$ http://www.tombarrasso.com/Student-Government/ [R=302,NC,L]

However I am not keen on adding separate Rules for each and every file.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.