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. How to setup a redirect from one subfolder to another to avoid duplicate content.

    How to setup a redirect from one subfolder to another to avoid duplicate content.

    Web Design
    5 3 120
    • 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.
    • Michael_Rock
      Michael_Rock last edited by

      Hello All,

      I have a WordPress site that Moz says has duplicate content.

      http://deltaforcepi.com/latest-news/page/3
      http://deltaforcepi.com/category/latest-news/page/3

      So I set up an addition to the .htaccess file . . .

      redirect code to move from one folder to another

      RewriteRule ^category/latest-news/(.*)$ /latest-news/$1 [R=301,NC,L]

      What did I do wrong? I am not proficient in .htaccess files.

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

        I believe it should be-

        RewriteRule ^category/latest-news/(.*)$ http://yourdomain.com/latest-news/$1 [R=301,NC,L]

        Try that and see if it doesn't fix it for you.  (Replace 'yourdomain.com' with your real domain of course.)

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

          Nope, that didn't do it. I see that WordPress creates duplicate content from having an archive of posts made on the website. Maybe If I can have an robot.txt file that does not crawl that directory???

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

            Google has always said and very recently repeated that internal duplicate content is not an issue, Google will simply decide on what content is best to return results too.

            If you are concerned you have a few options instead of what you are doing.

            Use the meta noindex so that Google does not index the data. If you cant do that because of wordpress then this can be set externally Using the X-Robots-Tag HTTP header.

            https://developers.google.com/webmasters/control-crawl-index/docs/robots_meta_tag

            Hope that helps. Personally I would keep the page up because Google is used to dealing with wordpress and would punish thousands of sites if this was really an issue.

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

              Thank you, I did not think it would have been an issue either but the customer did not like seeing that on the report and wanted it fixed. I will look into how to setup a robots.txt file to take care of this.

              Michael

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              • Multiple sites using same text - how to avoid Google duplicate content penalty?
                pastcatch
                pastcatch
                0
                3
                708

              • Can multiple domains compete with one another if they have the same/similar content?
                kevinliao
                kevinliao
                0
                3
                123

              • How To Avoid Duplicate Content
                TakeshiYoung
                TakeshiYoung
                0
                3
                147

              • Redirecting duplicate pages
                ChrisCountey
                ChrisCountey
                0
                4
                242

              • Duplicate content issue
                Debdulal
                Debdulal
                0
                5
                241

              • Duplicate content
                SaforwebDesign
                SaforwebDesign
                0
                3
                394

              • Minimising duplicate content
                evolvingSEO
                evolvingSEO
                0
                5
                466

              • Duplicate Page Content
                Melia
                Melia
                0
                6
                842

              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