How would I make Apache case insensitive using .htaccess?

user1397143 picture user1397143 · Jun 20, 2013 · Viewed 31.7k times · Source

I recently switched from IIS to Apache and unfortionately some of my links have capitalization issues. I have seen quite a few people talking about how to rewrite urls to be all lowercase or all uppercase but I need something to just make Apache case insensitive. Is this doable with .htaccess?

Answer

iEmad picture iEmad · Oct 11, 2013

add

CheckSpelling on

to your .htaccess file of course after enabling the RewriteEngine

so the final code will be

RewriteEngine on
CheckSpelling on

I guess it is the best and safest way.

dont forget to change

AllowOverride none

to

AllowOverride All

inside your httpd.conf file, to allow .htaccess files to work correctly.