: Change web folders names with uppercase to lowercase or not? I have web directories with upper case letters and site is on Apache server. Example: www.example.com/ServiceTools/page.htm I have read
I have web directories with upper case letters and site is on Apache server.
Example: example.com/ServiceTools/page.htm
I have read that using upper case letters in folder name is bad practice and could cause problem with accessing page and produce 404 pages?
Should I change folder to lowercase and will this have influence on SEO?
example.com/servicetools/page.htm
More posts by @Megan663
2 Comments
Sorted by latest first Latest Oldest Best
Having mix case URLs will cause some 404 errors:
Users that type in URLs typically do not capitalize.
Some badly configured bots lowercase all URLs before fetching them. (I worked on a site with mixed-case URLs and we saw this occasionally.)
I would recommend putting something in place to handle the visitors that get to the all lower case URL. That could be:
Making the canonical URL all lower case as you suggest
Putting in a redirect from the lower case URL to the mixed case URL (so that the mixed case URL is the canonical)
Configuring your server to be case insensitive so that the content gets served at either URL, then using a meta rel canonical tag to tell search engines which one to index.
It is generally easier to put redirects in place to correct the case of URLs when the URLs are all lower case. That is because redirecting to a lower case URL is a simple rule that can be handled by character substitution and a rewrite rule. When you have mixed case URLs, you have to do a database or file system lookup to know what the correct case for any given URL should be before issuing the redirect.
Having capital letters in your URL is perfectly fine. It doesn't affect the performance of your website and shouldn't cause any problems for search engines.
I can only guess that whomever told you it could cause 404 errors meant that if someone typed in the URL manually and didn't use capital letters that the page would not be found. That's true but the reverse is also true (if someone uses capital letters and your URL has none) so that's hardly useful information. But if you are concerned about this affecting your users you can always use mod_speling (yes, one L) to allow your URLs to be case insensitive.
As far as capitalization affecting search engines, since they follow links and sitemaps they won't be using the wrong URL unless you tell them to.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.