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. Duplicate content issue with trailing / ?

    Duplicate content issue with trailing / ?

    Technical SEO Issues
    7 4 461
    • 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.
    • Richard555
      Richard555 last edited by

      Hi ,I did a SEOmoz Crawl Test and found most pages show twice, for example:

      A:  www.website.com/index.php/dog/walk

      B:  www.website.com/index.php/dog/walk/

      I've checked Google Analytics and 90% of organic search traffic arrives on the URLs with the trailing slash (B).

      Question 1: Can I assume I've a duplicate content problem?

      Question 2: Is it best to do 301 redirects from the 'non trailing slash' pages to the 'trailing slash pages'?

      Question 3: For some reason every web page has a '/index.php' in it (see A&B) above. No idea why. Should it be a SEO concern?

      Kind regards and thank you in advance

      Nigel

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

        1. Google can generally tell the difference between pages that have syntactically similar URLs but it's considered a best practice to not make any engine do any guesswork whenever possible.

        2. I would 301 one version just for uniformity but you should be fine as-is right now.

        3. There's nothing wrong with that being in the URL. Google sees it as part of the URL and nothing more. I don't consider it aesthetic or user friendly but that's a different matter.

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

          Question 1: Can I assume I've a duplicate content problem?
          -Yes

          Question 2: Is it best to do 301 redirects from the 'non trailing slash' pages to the 'trailing slash pages'?
          -Yes 301 is best, barring that use rel="canonical" on the page you want to index

          Question 3: For some reason every web page has a '/index.php' in it (see A&B) above. No idea why. Should it be a SEO concern?

          -Yes, this is a concern, use the same method to deal with the problem. Directories on the server side are usually assumed to have an index, if not the server can choose what to display, this can be very bad sometimes. As such most CMS content management systems fix the problem by generating content for the index.php or .html pages. However, there can be duplicate content issues since there are 2 urls with the same content, use 301 to get rid of the index.php at directory levels, or use canonical tags.

          Hope that helps,

          Don

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

            Thank you Highland & Donford.

            Re my 3rd question, can I just clarify, should I  now 301 redirect both A & B  URLs to a new URL say www.website/com/dog/walk   ?

            Many thanks!

            irvingw 1 Reply Last reply Reply Quote 0
            • irvingw
              irvingw @Richard555 last edited by

              Yes, index.php should never show so 301 that plus the trailing slash to remove it

              Ddefinitely canonical all of the pages to have the URL without the trailing slash

              Make sure your sitemap xml files and internal linking structure does not have the trailing slash. if they do,, then fix them to reflect the proper URL

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

                Hi Irving

                Thank you for your reply. You mention a good point regarding the sitemap.xml!

                If I was to 301redirect pages A & B to a new page eg www.website.com/dog/walk/ then how would I also canonical A & B to the new page?

                Surely once I have 301'd the A & B pages will be dead and redirecting traffic to the new page.

                Kind regard and my apologies for any confusion.

                Nigel

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

                  Hi Nigel

                  You only need to 301 one of the pages, 301 is indicating a permanent move, so in the case you outlined above,

                  I would 301, A to B the decisions to use B was based soly off the value of the url you indicated.  If for any reason you prefer the url's not use trailing slash then use A.

                  It also would not hurt to add a canonical tag to B

                  To be clear here, whether you use

                  website.com/index.php/dog/walk

                  or

                  website.com/index.php/dog/walk/

                  Does not matter as far as SEO is concerned, I would make my decision based off of which url has the highest position in Google, and be consistent with this method throughout my site.

                  Hope that helps,

                  1 Reply Last reply Reply Quote 1
                  • 1 / 1
                  • First post
                    Last post
                  • I have duplicate content but // are causing them
                    ThompsonPaul
                    ThompsonPaul
                    0
                    7
                    62

                  • When is Duplicate Content Duplicate Content
                    AMHC
                    AMHC
                    0
                    6
                    169

                  • Duplicate content or Duplicate page issue?
                    Kurt_Steinbrueck
                    Kurt_Steinbrueck
                    0
                    2
                    106

                  • Duplicate Content Issue
                    NakulGoyal
                    NakulGoyal
                    0
                    4
                    81

                  • Duplicate content /index.php/ issues
                    ThompsonPaul
                    ThompsonPaul
                    1
                    5
                    867

                  • Container Page/Content Page Duplicate Content
                    ProductiveEdge
                    ProductiveEdge
                    1
                    4
                    194

                  • Duplicate Content Issue
                    Cyrus-Shepard
                    Cyrus-Shepard
                    0
                    4
                    382

                  • Duplicate content issue
                    Ideas-Money-Art
                    Ideas-Money-Art
                    0
                    7
                    631

                  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