AshikNesin.com

Notes on Tech & Life

  • Home
  • Programming
  • Tutorials
  • Make Money
  • About
  • Contact
You are here: Home / How to Guide / How to Make Folders Case Insensitive in Web Hosting (Apache Server)

How to Make Folders Case Insensitive in Web Hosting (Apache Server)

By Ashik Nesin 3 Comments

directory-in-server

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

 

CheckCaseOnly On

 

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?

  • Facebook
  • Twitter
  • Google+
  • StumbleUpon
  • Buffer

Recommended Guides for you

  • Top 5 ways to Kick content scrapers – No more Online Plagiarism!Top 5 ways to Kick content scrapers – No more Online Plagiarism!
  • How To Setup WordPress Blog on PenDriveHow To Setup WordPress Blog on PenDrive
  • How to Move WordPress to New Host with No Downtime [Easy Way]How to Move WordPress to New Host with No Downtime [Easy Way]
  • How to clean up your e-mail Inbox AutomaticallyHow to clean up your e-mail Inbox Automatically

Filed Under: How to Guide Tagged With: .htaccess, apache, case-sensitive, Linux servers

About Ashik Nesin

Founder of HugeThoughts. I've been freelancing for many years and now focuses on providing quality resources &tutorials that I hope others find interesting too..
Contact me anytime for anything- I’d love to hear from you!

Comments

  1. Mori says

    December 29, 2013 at 10:46 am

    Thanks for the awesome article. It provides a lot of advice I had been looking for.

    Reply
    • Ashik Nesin says

      December 29, 2013 at 5:09 pm

      I’m glad the article helped you, Mori 🙂

      Reply
  2. someone says

    October 12, 2014 at 8:38 pm

    “.htaccess files works only on Linux servers”
    Apparently not.. Apache – the leading Linux server – uses .htaccess files for settings whereas other servers use their own proprietary formats. By the way: your tick box mechanism doesn’t seem to work; I’m sending this from an asp.net application hosted in IIS, just to check. you should use SHA-256 and AES for security against “SPAM BOTS”, not checkboxes.

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Articles

  • How To Record Your iPhone Screen in 3 Easy Steps
  • Official Link to Download Mozilla Firefox Standalone Offline Installer [Latest ]
  • How to Automatically Login to Windows 8.1/10 in 60 Seconds
  • How to create Self-Destruction program in C/C++
  • Top 5 open-source alternative for Photoshop
Copyright © 2020 · – till the end of time, Ashik Nesin