If you are newbie web designer or someone who wants to start a website, the chances are you will fall in this trap
In Linux all files & directories are case-sensitive. Since most of the web servers runs on Linux OS they will also be case-sensitive.
Let me explain you with simple example. You have created a file called “ContactMe.html” and uploaded it to your server and when some one visit www.yourdomain.com/Contactme.html it will show a 404 page error.
How to solve it ?
We can solve it by enabling mod_speling module’s ‘s CheckCaseOnly in Apache.
When you enable it in your server it will check for correct spelling (lower/upper case changes) and redirects to it to the correct one. We do this by editing your root .htaccess file so that it will be case-insensitive.
All you need to do is just create a .htaccess file in your root folder (If it is already created just open it) and enter the below code
Note – .htaccess files works only on Linux servers
How about you?
What method you are using to make it case-insensitive?
Let us know your methods in the comments below.
If this post has been of value for you, Why not share the love by sharing it on social networks?