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. Intermediate & Advanced SEO
    4. Having a hard time with duplicate page content

    Having a hard time with duplicate page content

    Intermediate & Advanced SEO
    5 3 346
    • 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.
    • cgman
      cgman last edited by

      I'm having a hard time redirecting website.com/ to website.com

      The crawl report shows both versions as duplicate content.

      Here is my htaccess:

      RewriteEngine On
      RewriteBase /
      #Rewrite bare to www
      RewriteCond %{HTTP_HOST} ^mywebsite.com
      RewriteRule ^(([^/]+/)*)index.php$ http://www.mywebsite.com/$1 [R=301,L]

      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteCond %{REQUEST_FILENAME}.php -f
      RewriteRule ^(.*)$ $1.php [NC,L]
      RewriteCond %{HTTP_HOST} !^.localhost$ [NC]
      RewriteRule ^(.+)/$ http://%{HTTP_HOST}$1 [R=301,L]

      I added the last 2 lines after seeing a Q&A here, but I don't think it has helped.

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

        This is what we use

        Replace html with php

        RewriteEngine on
        RewriteCond %{THE_REQUEST} ^./index.html?\ HTTP/
        RewriteRule ^(.
        )index.html?$ "/$1" [R=301,L]

        I'd remove the last 2 lines from your post and add that in...

        Hope it helps.

        cgman 2 Replies Last reply Reply Quote 0
        • cgman
          cgman @donford last edited by

          Thanks, I'll give it a shot and recrawl.

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

            Tried this, ran new crawl, still says duplicate pages.

            😞

            KeriMorgret 1 Reply Last reply Reply Quote 0
            • KeriMorgret
              KeriMorgret @cgman last edited by

              Does the URL redirect in the browser, or are you still needing to get the redirect itself set up correctly?

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              • SEO: How to change page content + shift its original content to other page at the same time?
                LizMicik
                LizMicik
                0
                3
                87

              • Duplicate Page Content
                PatrickDelehanty
                PatrickDelehanty
                0
                2
                60

              • Pages with Duplicate Page Content (with and without www)
                Andy.Drinkwater
                Andy.Drinkwater
                0
                3
                181

              • Base copy on 1 page, then adding a bit more for another page - potential duplicate content. What to do?
                Linda-Vassily
                Linda-Vassily
                0
                5
                124

              • Duplicate content - how to diagnose duplicate content from another domain before publishing pages?
                Chemometec
                Chemometec
                0
                7
                141

              • A/B Testing - Should I add product descriptions on my category landing pages as well as on product pages and if so . how to do this to avoid duplicate content
                PeteC12
                PeteC12
                0
                3
                162

              • Duplicate page content
                KeriMorgret
                KeriMorgret
                0
                5
                683

              • Duplicate page Content
                oneticsoft
                oneticsoft
                0
                2
                954

              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