To Slash or Not to Slash in your Filename: Yes it Matters!
 by Casey Markee

To Slash or Not to Slash in your Filename: Yes it Matters!

  • We were discussing a new site with our tech team and they suggested that we add trailing slashes to the end of all of our URLs, such as Won't this cause SEO issues, as Google will recognize this as a folder, not a landing page? I also mentioned that this would cause issues with our links, as almost all inbound links will not include a trailing slash so 301s would need to be setup to forward all click-thrus to the "correct" URL. It seems that any server processing saved from not having to add the trailing slash will be lost with processing of 301s. Have you encountered any issues with this before? If so, do you have any data or info that could help make my case?

Answer: This is a good question and one we actually get quite a bit. Although it's common for URLs with a trailing slash to indicate a directory, it's becoming more and more common to see it on regular file names as well. Because of this, Google has, for some time, treated them BOTH the same.

Google covered this issue in detail back in a 2010 Webmaster Blog post that also lays out the suggested approach on handling this for Webmasters. It's definitely worth a read.

Basically, in your case, we (and Google) would suggest the actual configuration isn't important as long as only one version of the page and content is accessible online. You also must be consistent with what you choose AND that it returns a 200 status code AND the other (be it the slash or no slashed URL) redirects with a 301. In other words, as long as you prevent your server from processing two versions of a page (one with a slash, one without) as both reachable and indexable, then you have eliminated any duplicate content issues and are good to go.

Now, here's the important takeaway: there is a slight performance hit when configuring a server to drop the trailing slash from subdirectories, as...

Already a member? Sign in here

Read the rest of this article,
and get all this for only $1.

  • The Search Engine Strategies Updates for October 2016
  • Ultimate Guide to Avoiding Google Penalties
  • The Complete Site Audit Checklist
  • The Definitive Local Search Audit Checklist
  • 100's of Strategic SEO Articles and Q&As
  • The Professional Engine Master's Chart
  • The Internet Marketing Glossary
  • The Ultimate Directory Submission List
  • The Pro SEO's Local Search Directory List
  • 16 years of SEN Archives
  • PLUS, as a Full SEN Basic Member, you'll be eligible for hundreds of dollars of discounts on SEO courses ranging from beginner to master on a variety of topics including organic search, local search, and social networking.

  • Your $1 Trial is good for 7 days at which time your card will be charged $29/mo unless you cancel before November 3rd, 2016

 This form is encrypted for your security