Good Karma Host LLC
Please Login or Register

Knowledgebase

Linking in Your Website: Capitalization and Spaces Matter

When you're making a link from one page of your website to another, it's important to use the proper capitalization, since Linux is case-sensitive. In other words, a link to "resources.html" and "Resources.html" are, indeed, links to two different pages! Likewise, a link to "file.pdf" will not work the same as "File.pdf" on the web server, even if it does work properly on your computer.

Notably, Windows and Macintosh operating systems do not care about capitalization in file names. Linux (which runs most web servers) however, does.

Same goes for spaces. It's best practice to avoid spaces in filenames that will be accessed on a web server, using a dash or underscore charater instead. If you don't, people will still be able to access your file if it's linked properly, but it will look different that you might expect and may be somewhat confusing.

So if you're linking "My File.pdf" and upload it, on your website, the link will show up on most web servers as My%20File.pdf. Instead, use one of the following varations:

  • MyFile.pdf (noting the capitiazation still matters for your link)
  • My-File.pdf
  • My_File.pdf

Best practice is to choose your naming convention and stick to it.



Was this answer helpful?

Add to Favourites Add to Favourites

Print this Article Print this Article

Also Read
Setting up Subdomains (Views: 559)
What is a domain? (Views: 469)

Powered by WHMCompleteSolution

Quick Navigation

Client Login

Email

Password

Remember Me

Search



Follow Us on Twitter