If you are developing your website and you cannot find out why your pages, images, JavaScripts, and other web data is causing a 404 error not found, you may have a problem with case sensitivity.

Linux servers are case sensitive. Windows servers are not case sensitive, so if you are moving your files from a Windows development platform to a Linux web platform you may need to watch out for the following common mistakes.

Common Case Sensitive errors

Mixing Upper case and lower case

A common mistake is naming files a mixture of upper case and lower case. Like the following:

MyFileName.html

Linux reads the file name exactly the way its typed. So,

MyFileName.html

Is NOT the same as:

myfilename.html

Incorrectly types file extension

File extensions are case sensitive as well. Some file types have 4 letters and others 3. See the following example:

Likewise, file extensions need to be exact as well:

MyFileName.HTML

Is NOT the same as:

myfilename.html

Also, image extensions must be the right type:

image.jpg

Is NOT the same as:

image.jpeg

Best practice for Linux file naming

To prevent running into problems with your file paths on your site, we recommend following the best practices for file naming. See the below:

  1. Name all your files lower case.
  2. Instead of using a space, use an ( _ ) or a ( - )
  3. Use consistent file types. Use jpg or jpg. Don't use both.
  4. Only alphanumeric characters, periods, underscores and hyphens and don't use symbols like “%”, “$”, and so forth.
  5. Keep the file names short and descriptive.
Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve this article:
Email Address
Name

new! - Enter your name and email address above and we will post your feedback in the comments on this page!

Like this Article?

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

News / Announcements

WordPress wp-login.php brute force attack
Updated 2014-07-17 06:43 pm EST
Hits: 201633

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!