The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

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

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Web Design
    4. Google also indexed trailing slash version - PLEASE HELP

    Google also indexed trailing slash version - PLEASE HELP

    Web Design
    15 4 3.4k
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • RanjeetP
      RanjeetP last edited by

      Jvalops,

      This is a common scenario in SEO when you have 2 versions indexed of the same URL. This bascially creates a duplicate issue. Now, this situation has a solution which includes 2 things to implement:

      1. Fix it from the search engines's perspective.

      2. Make changes at the server level.

      You did remove the trailing slash so you fixed it at the server level but you left the search engines to think - Where did the URL go? Am I supposed to show a 404 for that or what?.

      So, it is important that you first fix them for the SE's and then make any server level changes because you never know how quick the crawlers can re-visit the disappeared URL and take their own action. Since this is just a recent change I hope that the SE;s will not evaluate it in a negative way but you should be quick to inform them. Now, since you have already removed it, do add a code in the .htaccess file stating that any URL with a slash redirects it to the URL without slash. I hope there are no URLs that have to end with a slash (just have a re-look on this, the home page and others).

      After this is done, to make things more clear to the search engines, resubmit your XML sitemap with all the correct URLs on the website and I think you will be just fine.

      On the rankings, I don't think it will be affected, unless there was a re-crawl after the indexation.

      Cheers,

      Jvalops 1 Reply Last reply Reply Quote 1
      • Jvalops
        Jvalops @RanjeetP last edited by

        Please can you tell me how to redirect urls with slash to non slash urls using .htaccess.

        RanjeetP Jvalops 7 Replies Last reply Reply Quote 0
        • RanjeetP
          RanjeetP @Jvalops last edited by

          I think some of these posts can help you understand:

          http://html5boilerplate.com/docs/Proper-usage-of-trailing-slash-redirects/

          http://stackoverflow.com/questions/4167539/remove-trailing-slash-using-htaccess-except-for-home-landing-page

          Do try this a test environment and take a backup of the .htaccess file before making any changes, Have it go through a programmer.

          Cheers,

          1 Reply Last reply Reply Quote 0
          • Jvalops
            Jvalops @Jvalops last edited by

            RewriteRule ^([^/]+/)*([^/.]+).html/ http://www.mydomain.com/$2.html [R=301,L]

            Looks like above did the trick

            1 Reply Last reply Reply Quote 0
            • RanjeetP
              RanjeetP @Jvalops last edited by

              Sounds good, do keep a check to make it 100% sure. I believe the SE's will be fine now.

              Cheers,

              1 Reply Last reply Reply Quote 0
              • Jvalops
                Jvalops @Jvalops last edited by

                I checked with this website: http://www.internetofficer.com/seo-tool/redirect-check/

                It says:

                http://www.mydomain.com/jason.html/

                Type of redirect: 301 Moved Permanently

                http://www.mydomain.com/jason.html

                So looks as if it's done the job. Right?

                1 Reply Last reply Reply Quote 0
                • RanjeetP
                  RanjeetP @Jvalops last edited by

                  Yups, its done. Just need to be sure if the Home Page is fine. The indexed version of the Home Page stays as it is without any redirection.

                  Cheers,

                  1 Reply Last reply Reply Quote 0
                  • Jvalops
                    Jvalops @Jvalops last edited by

                    Thanks a lot.

                    Now when i click the slash version of the indexed URL from google goes to nonslash version. So it seems we're safe now.

                    The other thing is when I submitted the sitemap.xml after launch it was without slash. Also all internal links are targeting nonslash URLs. I think google should understand that this is a technical issue and now it has been solved.

                    When should i remove that redirect?

                    1 Reply Last reply Reply Quote 0
                    • RanjeetP
                      RanjeetP @Jvalops last edited by

                      You are welcome.

                      Well, the first time you did submit the sitemap right, but now since Google has found new URLs on your website and indexed them, it would be good to notify the big G that they are no longer a part of your website and resubmitting would not hurt.

                      About the redirections, Google does take a bit of time to understand that the URLs have permanently moved and will gradually remove them from the index. So, keep checking the index for the trailing slash URLs and when they are gone, you can remove the redirections.

                      Cheers,

                      1 Reply Last reply Reply Quote 0
                      • Dr-Pete
                        Dr-Pete last edited by

                        Could you clarify a couple of things:

                        (1) When you say canonical URLs, do you mean your internal links, or the actual URLs in your rel="canonical" tags?

                        (2) If it was just the canonical tags, is everything consistent now (tags, internal links, etc.)?

                        Since both version will resolve, just fixing the canonical tags (if that's the issue) should be enough - it's just going to take a little time. They should be as effective as a 301-redirect in this case. Either way, though, it can take Google a while to kick out the duplicates. I'd just monitor the index closely and make sure the top-level pages are clearing up (i.e. your home-page and major category duplicates should be disappearing). If that's happening, you're ok - you just need to wait a bit. If that's not happening, then you may have some other mixed signals in play.

                        Jvalops 1 Reply Last reply Reply Quote 1
                        • Jvalops
                          Jvalops @Dr-Pete last edited by

                          1. Actual rel="canonical" tags.

                          2. As soon as we relised everything was fixed. Canonical tag is showing urls without slash and also aplied to htaccess to redirect slash version to non slash version.

                          <cite>we're using www.shopify.com</cite>

                          Dr-Pete RanjeetP 2 Replies Last reply Reply Quote 0
                          • Dr-Pete
                            Dr-Pete @Jvalops last edited by

                            Seems like you got the 301-redirect resolved below - if you've got that in place and fixed the canonical tag, it should be ok. It'll just take some time (usually longer than you'd like) for Google to clear out the pages, especially the deeper ones. If you see gradual de-indexation, though, you'll probably be fine.

                            1 Reply Last reply Reply Quote 2
                            • RanjeetP
                              RanjeetP @Jvalops last edited by

                              Thats great! The canonical URLs are showing URLs without slash as they are probably reflecting their original URL which is without slash. Hope Google clears them soon.. 🙂

                              1 Reply Last reply Reply Quote 0
                              • 1 / 1
                              • First post
                                Last post
                              • Affiliate and Earning Disclosure help please
                                BradsDeals
                                BradsDeals
                                0
                                4
                                143

                              • Google Indexing Multi-Store Best Practice
                                Andy.Drinkwater
                                Andy.Drinkwater
                                0
                                4
                                104

                              • Https pages indexed but all web pages are http - please can you offer some help?
                                katemorris
                                katemorris
                                0
                                4
                                2.6k

                              • Google text-only vs rendered (index and ranking)
                                TomVolpe
                                TomVolpe
                                0
                                2
                                412

                              • Can only get a few pages indexed on by google
                                tidybooks
                                tidybooks
                                0
                                3
                                109

                              • URLs with Hashtags - Does Google Index Them?
                                AAPanalytics
                                AAPanalytics
                                0
                                6
                                26.0k

                              • Next Google Index..?
                                Cornel_Ilea
                                Cornel_Ilea
                                0
                                8
                                665

                              • Google indexing Quickview popups
                                0
                                1
                                789

                              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
                              • Digital Marketers
                              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 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
                              • Accessibility
                              • Terms of Use
                              • Privacy