undefined
Skip to content
Moz logo Menu open Menu close
  • Products
    • Moz Pro
    • Moz Pro Home
    • Moz Local
    • Moz Local Home
    • STAT
    • Moz API
    • Moz API Home
    • Compare SEO Products
    • Moz Data
  • Free SEO Tools
    • Domain Analysis
    • Keyword Explorer
    • Link Explorer
    • Competitive Research
    • MozBar
    • More Free SEO Tools
  • Learn SEO
    • Beginner's Guide to SEO
    • SEO Learning Center
    • Moz Academy
    • SEO Q&A
    • Webinars, Whitepapers, & Guides
  • Blog
  • Why Moz
    • Agency Solutions
    • Enterprise Solutions
    • Small Business Solutions
    • Case Studies
    • The Moz Story
    • New Releases
  • Log in
  • Log out
  • Products
    • Moz Pro

      Your all-in-one suite of SEO essentials.

    • Moz Local

      Raise your local SEO visibility with complete local SEO management.

    • STAT

      SERP tracking and analytics for enterprise SEO experts.

    • Moz API

      Power your SEO with our index of over 44 trillion links.

    • Compare SEO Products

      See which Moz SEO solution best meets your business needs.

    • Moz Data

      Power your SEO strategy & AI models with custom data solutions.

    NEW Keyword Suggestions by Topic
    Moz Pro

    NEW Keyword Suggestions by Topic

    Learn more
  • Free SEO Tools
    • Domain Analysis

      Get top competitive SEO metrics like DA, top pages and more.

    • Keyword Explorer

      Find traffic-driving keywords with our 1.25 billion+ keyword index.

    • Link Explorer

      Explore over 40 trillion links for powerful backlink data.

    • Competitive Research

      Uncover valuable insights on your organic search competitors.

    • MozBar

      See top SEO metrics for free as you browse the web.

    • More Free SEO Tools

      Explore all the free SEO tools Moz has to offer.

    NEW Keyword Suggestions by Topic
    Moz Pro

    NEW Keyword Suggestions by Topic

    Learn more
  • Learn SEO
    • Beginner's Guide to SEO

      The #1 most popular introduction to SEO, trusted by millions.

    • SEO Learning Center

      Broaden your knowledge with SEO resources for all skill levels.

    • On-Demand Webinars

      Learn modern SEO best practices from industry experts.

    • How-To Guides

      Step-by-step guides to search success from the authority on SEO.

    • Moz Academy

      Upskill and get certified with on-demand courses & certifications.

    • SEO Q&A

      Insights & discussions from an SEO community of 500,000+.

    Unlock flexible pricing & new endpoints
    Moz API

    Unlock flexible pricing & new endpoints

    Find your plan
  • Blog
  • Why Moz
    • Small Business Solutions

      Uncover insights to make smarter marketing decisions in less time.

    • Agency Solutions

      Earn & keep valuable clients with unparalleled data & insights.

    • Enterprise Solutions

      Gain a competitive edge in the ever-changing world of search.

    • The Moz Story

      Moz was the first & remains the most trusted SEO company.

    • Case Studies

      Explore how Moz drives ROI with a proven track record of success.

    • New Releases

      Get the scoop on the latest and greatest from Moz.

    Surface actionable competitive intel
    New Feature

    Surface actionable competitive intel

    Learn More
  • Log in
    • Moz Pro
    • Moz Local
    • Moz Local Dashboard
    • Moz API
    • Moz API Dashboard
    • Moz Academy
  • Avatar
    • Moz Home
    • Notifications
    • Account & Billing
    • Manage Users
    • Community Profile
    • My Q&A
    • My Videos
    • Log Out

The Moz Q&A Forum

  • Forum
  • Questions
  • Users
  • Ask the Community

Welcome to the Q&A Forum

Browse the forum for helpful insights and fresh discussions about all things SEO.

  1. Home
  2. SEO Tactics
  3. Technical SEO
  4. Trailing Slashes on Home Pages

Moz Q&A is closed.

After more than 13 years, and tens of thousands of questions, Moz Q&A closed on 12th December 2024. Whilst we’re not completely removing the content - many posts will still be possible to view - we have locked both new posts and new replies. More details here.

Trailing Slashes on Home Pages

Technical SEO
3
9
8.0k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as question
Log in to reply
This topic has been deleted. Only users with question management privileges can see it.
  • eventurerob
    eventurerob last edited by Jan 21, 2013, 9:20 AM

    I do not think I have a problem here, but a second opinion would be welcomed...

    I have a site which has a the rel=canonical tag with the trailing slash displayed. ie www.example.com/

    The sitemap has it without the trailing slash. www.example.com

    Google has it's cached copy with the trailing slash but the browser displays it without.

    I want to say it's perfectly fine (for the home page) as I tend to think they are treated (with/without trailing slashes) as the same canonical URL.

    1 Reply Last reply Reply Quote 0
    • Marcus_Miller
      Marcus_Miller @eventurerob last edited by Jan 21, 2013, 10:41 AM Jan 21, 2013, 10:41 AM

      Totally agree, it's kind of a non issue, improve the canonical if you can but really, don't sweat it. 🙂

      1 Reply Last reply Reply Quote 0
      • Alex-Harford
        Alex-Harford @eventurerob last edited by Jan 21, 2013, 10:39 AM Jan 21, 2013, 10:39 AM

        Oh yes, thanks for that. I've read that page a few times. :S

        Apologies for the confusion Alex.

        Don't have a crisis of confidence anyway! If there's a canonical 99 times out of 100 (probably more) I'm sure Google would get this right whether it's the homepage or not.

        What server is the site hosted on Alex? Or are the URLs controlled by a CMS?

        1 Reply Last reply Reply Quote 0
        • Marcus_Miller
          Marcus_Miller @eventurerob last edited by Jan 21, 2013, 10:29 AM Jan 21, 2013, 10:29 AM

          That is certainly my understanding - the homepage is a special case.

          This pretty much details it in full:

          To slash or not to slash

          1 Reply Last reply Reply Quote 1
          • eventurerob
            eventurerob @Alex-Harford last edited by Jan 21, 2013, 10:17 AM Jan 21, 2013, 10:17 AM

            Hi Alex

            Ah, crisis of confidence again!

            I didn't think that this was the case though for the index page. I thought normalisation meant they were treated as the same page. As Marcus said, I can't 301 the example.com page to example.com/ .

            Marcus_Miller Alex-Harford 3 Replies Last reply Jan 21, 2013, 10:41 AM Reply Quote 0
            • Marcus_Miller
              Marcus_Miller @eventurerob last edited by Jan 21, 2013, 10:17 AM Jan 21, 2013, 10:17 AM

              Hey,

              in an ideal world, make sure it is has no trailing slash. But, as per the Google specific recommendations, make sure both resolve as a 200 OK rather than redirecting / to non /.

              Think about it -

              The browser removes the trailing slash. Also, go to any big site, Google, SEOMoz - the all have no slash. But.. check it in webbug and they resolve on both.

              For me, having a trailing slash on the root or anywhere is just something else for folks to forget to add if they are linking or some such.

              Here I would just remove the trailing slash in your canonical if you can just to be sure but the usual rules don't apply on the homepage and www.example.com & www.example.com/ are regarded as the same thing.

              I have constant crisis of confidence - i often wonder if I am making it up as I go along or somewhere down the history of all the hundreds of SEO audits I have done I actually learned something along the way! I have actually googled something that I was unsure about and found my own blog post about it before. I think, much like Homer Simpson, every new thing I learn now pushes out an older thing! 😉

              Hope that helps!
              Marcus

              1 Reply Last reply Reply Quote 1
              • eventurerob
                eventurerob @Marcus_Miller last edited by Jan 21, 2013, 10:07 AM Jan 21, 2013, 10:07 AM

                Hi Marcus

                I agree out outside of the home page it's an issue (& good answer btw) but it's only the index page I'm worried about.

                It's that crisis of confidence that I'm sure we all get from time to time as to whether something rather simple/fundamental is actually as we believe it to be.

                I've been re-reading this document http://tools.ietf.org/html/rfc3986 and I think it's section 3.2.6 (if I remember right) that covers normalization of the root URL's.

                Marcus_Miller 1 Reply Last reply Jan 21, 2013, 10:17 AM Reply Quote 0
                • Alex-Harford
                  Alex-Harford last edited by Jan 21, 2013, 9:56 AM Jan 21, 2013, 9:56 AM

                  The two versions you speak of are treated as duplicate content. Ideally you should make sure the URL is the same everywhere, and 301 redirect to your preferred version. Are you sure the browser itself isn't removing the trailing slash? I know Chrome does on non-directory pages.

                  Saying that, if you have a canonical tag it shouldn't cause a massive problem, but it will help to do everything properly. Do everything you can to make sure all links under your control are the same version.

                  eventurerob 1 Reply Last reply Jan 21, 2013, 10:17 AM Reply Quote 0
                  • Marcus_Miller
                    Marcus_Miller last edited by Jan 21, 2013, 9:42 AM Jan 21, 2013, 9:42 AM

                    Hey Alex

                    There is a good overview of this here:

                    http://googlewebmastercentral.blogspot.co.uk/2010/04/to-slash-or-not-to-slash.html

                    Outside of the homepage, a slash url and a non slash URL are regarded as two seperate pages so are technically duplicates. Now, Google will generally deal with this but it is not optimal (which is what we are all about eh) so you should make a call and either go / or no / and then 301 the other version to the default.

                    The homepage should resolve on both and 200 for both and not redirect to the non slash. The browser will generally remove the slash on a root URL.

                    This is from the above link:

                    Rest assured that for your root URL specifically, http://example.com is equivalent to http://example.com/ and can’t be redirected even if you’re Chuck Norris.

                    If you are using a CMS there are usually plugins or configuration options to enforce a slash if that is your preferred option.

                    The big deal here is to

                    A - be consistent

                    B - 301 the alternative to the preferred for crawl optimisation and to ensure no daft duplication issues crop up.

                    Hope that helps!
                    Marcus

                    eventurerob 1 Reply Last reply Jan 21, 2013, 10:07 AM Reply Quote 1
                    • 1 / 1
                    1 out of 9
                    • First post
                      1/9
                      Last post

                    Got a burning SEO question?

                    Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.


                    Start my free trial


                    Browse Questions

                    Explore more categories

                    • Moz Tools

                      Chat with the community about the Moz tools.

                    • SEO Tactics

                      Discuss the SEO process with fellow marketers

                    • Community

                      Discuss industry events, jobs, and news!

                    • Digital Marketing

                      Chat about tactics outside of SEO

                    • Research & Trends

                      Dive into research and trends in the search industry.

                    • Support

                      Connect on product support and feature requests.

                    • See all categories

                    Related Questions

                    • Ginovdw

                      Keywords are indexed on the home page

                      indexation keyword rankings

                      Hello everyone, For one of our websites, we have optimized for many keywords. However, it seems that every keyword is indexed on the home page, and thus not ranked properly. This occurs only on one of our many websites. I am wondering if anyone knows the cause of this issue, and how to solve it. Thank you.

                      Technical SEO | Dec 17, 2021, 11:09 PM | Ginovdw
                      1
                    • RebekahVP

                      Should search pages be indexed?

                      Hey guys, I've always believed that search pages should be no-indexed but now I'm wondering if there is an argument to index them? Appreciate any thoughts!

                      Technical SEO | Apr 16, 2019, 7:57 AM | RebekahVP
                      0
                    • TimHolmes

                      301 redirect adding trailing slash to url

                      I am looking into a .htacess file for a site I look after and have noticed that the urls are all 301 redirecting from a none slash directory to a trailing slashed directory/folders. e.g. www.domain.com/folder gets 301 redirected to www.domain.com/folder/ Will this do much harm and reduce the effect on the page and any links pointing to the site be lessened? Secondly I am not sure what part of my htaccess is causing the redirect. RewriteCond %{HTTP_HOST} !^www.domain.co.uk [NC] RewriteCond %{HTTP_HOST} !^$
                      RewriteRule ^(.*) http://www.domain.co.uk/$1 [L,R,NE] RewriteCond %{THE_REQUEST} ^./index.php
                      RewriteRule ^(.)index.php$ /$1 [R=301,L] or could a wordpress ifmodule be causing the problem? Any info would be apreciated.

                      Technical SEO | Sep 14, 2015, 5:40 AM | TimHolmes
                      0
                    • marcuslind90

                      What to do with temporary empty pages?

                      I have a website listing real estate in different areas that are for sale. In small villages, towns, and areas, sometimes there is nothing for sale and therefore the page is completely empty with no content except a and some footer text. I have thousand of landing pages for different areas. For example "Apartments in Tibro" or "Houses in Ljusdahl" and Moz Pro gives me some warnings for "Duplicate Content" on the empty ones (I think it does so because the pages are so empty that they are quite similar). I guess Google could also think bad of my site if I have hundreds or thousands of empty pages even if my total amount of pages are 100,000. So, what to do with these pages for these small cities, towns and villages where there is not always houses for sale? Should I remove them completely? Should I make a 404 when no houses for sale and a 200 OK when there is? Please note that I have totally 100,000+ pages and this is only about 5% of all my pages.

                      Technical SEO | Dec 29, 2014, 4:32 AM | marcuslind90
                      0
                    • WebServiceConsulting.com

                      Can you noindex a page, but still index an image on that page?

                      If a blog is centered around visual images, and we have specific pages with high quality content that we plan to index and drive our traffic, but we have many pages with our images...what is the best way to go about getting these images indexed? We want to noindex all the pages with just images because they are thin content... Can you noindex,follow a page, but still index the images on that page? Please explain how to go about this concept.....

                      Technical SEO | Oct 8, 2013, 6:01 PM | WebServiceConsulting.com
                      0
                    • TOMMarketingLtd.

                      Home Page .index.htm and .com Duplicate Page Content/Title

                      I have been whittling away at the duplicate content on my clients' sites, thanks to SEOmoz's pro report, and have been getting push back from the account manager at register.com (the site was built here and the owner doesn't want to move it).  He says these are the exact same page and he can't access one to redirect to the other.  Any suggestions? The SEOmoz report says there is duplicate content on both these urls: Durango Mountain Biking | Durango Mountain Resort - Cascade Village http://www.cascadevillagehotel.com/index.htm Durango Mountain Biking | Durango Mountain Resort - Cascade Village http://www.cascadevillagehotel.com/ Your help is greatly appreciated! Sheryl

                      Technical SEO | Sep 18, 2012, 7:32 PM | TOMMarketingLtd.
                      0
                    • AndrewAkesson

                      Web config redirects not working where a trailing slash is involved

                      I'm having real trouble with getting working redirects in place to use on a site we're re-launching with a modified url structure. Old URL: http://www.example.com/example_folder/ New URL: http://www.example.com/example-of-new-folder/ Now, where the old URL's have a trailing slash the web.config simply will not accept it. It says the URL can start with a slash, but not end with a slash. However, many of my URL's do end with a slash so I need a workaround. These are the rules I'm putting in place: <location path="example_folder/"></location> Thanks

                      Technical SEO | Mar 26, 2012, 10:55 AM | AndrewAkesson
                      0
                    • DavidS-282061

                      Are .html pages better for ranking than .asp pages

                      It seems that .html pages do better for the long tail...

                      Technical SEO | Mar 5, 2011, 11:14 AM | DavidS-282061
                      0

                    Get started with Moz Pro!

                    Unlock the power of advanced SEO tools and data-driven insights.

                    Start my free trial
                    Products
                    • Moz Pro
                    • Moz Local
                    • Moz API
                    • Moz Data
                    • STAT
                    • Product Updates
                    Moz Solutions
                    • SMB Solutions
                    • Agency Solutions
                    • Enterprise Solutions
                    Free SEO Tools
                    • Domain Authority Checker
                    • Link Explorer
                    • Keyword Explorer
                    • Competitive Research
                    • Brand Authority Checker
                    • Local Citation Checker
                    • MozBar Extension
                    • MozCast
                    Resources
                    • Blog
                    • SEO Learning Center
                    • Help Hub
                    • Beginner's Guide to SEO
                    • How-to Guides
                    • Moz Academy
                    • API Docs
                    About Moz
                    • About
                    • Team
                    • Careers
                    • Contact
                    Why Moz
                    • Case Studies
                    • Testimonials
                    Get Involved
                    • Become an Affiliate
                    • MozCon
                    • Webinars
                    • Practical Marketer Series
                    • MozPod
                    Connect with us

                    Contact the Help team

                    Join our newsletter
                    Moz logo
                    © 2021 - 2025 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
                    • Accessibility
                    • Terms of Use
                    • Privacy

                    Looks like your connection to Moz was lost, please wait while we try to reconnect.