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. Technical SEO Issues
    4. Why are my URL's with a trailing slash still getting indexed even though they are redirected in the .htaccess file?

    Why are my URL's with a trailing slash still getting indexed even though they are redirected in the .htaccess file?

    Technical SEO Issues
    3 3 288
    • 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.
    • mkhGT
      mkhGT last edited by

      My .htaccess file is set up to redirect a URL with a trailing / to the URL without the /. However, my SEOmoz crawl diagnostics report is showing both URL's. I took a look at my Google Webmaster account and saw some duplicate META title issues. Same thing, Google Webmaster is showing the URL with the trailing /.

      My website was live for about 3 days before I added the code to the .htaccess file to remove the trailing /. Is it possible that in those 3 days that both versions were indexed and haven't been removed even though the .htaccess file has been updated?

      1 Reply Last reply Reply Quote 0
      • Eblan
        Eblan last edited by

        Are there any other images or links pointing to your urls with a / at the end? I would take a look just to make sure.

        You can request an index removal with Google's Webmasters Tools.

        Go to Optimization>Remove URL and type the address you wish removed. I did this with my .html urls after I uploaded my .htaccess file and worked like a charm.

        Could you write the urls of the pages you are getting a warning for duplicate content? It looks like you might need some tweaks to your .htaccess file to redirect those pages to avoid having duplicate content.

        1 Reply Last reply Reply Quote 1
        • irvingw
          irvingw last edited by

          check the following and make sure they are without trailing slashes

          sitemap.xml link

          internal linking urls

          canonical tag urls

          1 Reply Last reply Reply Quote 1
          • 1 / 1
          • First post
            Last post
          • Can a page that's 301 redirected get indexed / show in search results?
            Colemckeon
            Colemckeon
            0
            3
            43

          • If I'm using a compressed sitemap (sitemap.xml.gz) that's the URL that gets submitted to webmaster tools, correct?
            ThompsonPaul
            ThompsonPaul
            0
            6
            1.8k

          • 301 redirect adding trailing slash to url
            TimHolmes
            TimHolmes
            0
            5
            5.2k

          • My old URL's are still indexing when I have redirected all of them, why is this happening?
            MonicaOConnor
            MonicaOConnor
            0
            8
            325

          • Redirect url that don't end with slash
            arielbortz
            arielbortz
            0
            4
            173

          • We have designed a new site and are in dilemna whether or not to change the site's URL structure or maybe few odd looking urls. How exactly do we go about the URL thing in toto? thanks in advance, any suggestion(s) would be dearly welcome
            ShaunPhilips
            ShaunPhilips
            1
            7
            109

          • Why is a 301 redirected url still getting indexed?
            dim_d
            dim_d
            0
            6
            1.1k

          • Slashes In Url's
            gregster1000
            gregster1000
            0
            6
            1.0k

          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