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. Dynamic 301's causing duplicate content

    Dynamic 301's causing duplicate content

    Intermediate & Advanced SEO
    8 3 281
    • 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.
    • GoGroup51
      GoGroup51 last edited by

      Hi, wonder if anyone can help?

      We have just changed our site which was hosted on IIS and the page url's were like this ( example.co.uk/Default.aspx?pagename=About-Us ). The new page url is example.co.uk/About-Us/ and is using Apache.

      The 301's our developer told us to use was in this format:

      RewriteCond %{REQUEST_URI} ^/Default.aspx$
      RewriteCond %{QUERY_STRING} ^pagename=About-Us$
      RewriteRule ^(.*)$  http://www.domain.co.uk/About-Us/ [R=301,L]

      This seemed to work from a 301 point of view; however it also seemed to allow both of the below URL's to give the same page!

      example.co.uk/About-Us/?pagename=About-Us

      example.co.uk/About-Us/

      Webmaster Tools has now picked up on this and is seeing it a duplicate content.

      Can anyone help why it would be doing this please. I'm not totally clued up and our host/ developer cant understand it too.

      Many Thanks

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

        Hi Neil, try this:

        RewriteCond %{REQUEST_URI} ^/Default.aspx$
        RewriteCond %{REQUEST_URI} ^About-Us/$ RewriteCond %{QUERY_STRING} ^pagename=About-Us$
        RewriteRule ^(.*)$  http://www.domain.co.uk/About-Us/ [R=301,L]

        Hope this helps!

        GoGroup51 1 Reply Last reply Reply Quote 0
        • GoGroup51
          GoGroup51 @GeorgeAndrews last edited by

          Would this stop example.co.uk/About-Us/?pagename=About-Us working or just stop Google from listing as a dupe?

          SEOKeith GoGroup51 GeorgeAndrews 5 Replies Last reply Reply Quote 0
          • SEOKeith
            SEOKeith @GoGroup51 last edited by

            If the above rules Rewrite rules work correctly (always check) then it will redirect both Google and humans.

            Passing googles page rank from your old page to the new (well most of it anyway).

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

              IN that case it didn't work. I was able to visit both urls.

              1 Reply Last reply Reply Quote 0
              • GeorgeAndrews
                GeorgeAndrews @GoGroup51 last edited by

                Ok, maybe someone else will be able to pop in with some more info. Here's a post with a similar issue from Webmaster World:

                http://www.webmasterworld.com/apache/3203401.htm

                1 Reply Last reply Reply Quote 0
                • SEOKeith
                  SEOKeith @GoGroup51 last edited by

                  Are you looking to redirect a single url or many similar URL's ?

                  1 Reply Last reply Reply Quote 0
                  • SEOKeith
                    SEOKeith @GoGroup51 last edited by

                    Right I have done some research... As this was bugging me... 
                    

                    Remove:

                    RewriteCond %{REQUEST_URI} ^/Default\.aspx$
                    RewriteCond %{QUERY_STRING} ^pagename=About-Us$
                    RewriteRule ^(.*)$  http://www.domain.co.uk/About-Us/ [R=301,L]
                    
                    

                    And replace it with:

                    ```
                    <code>RewriteCond %{QUERY_STRING} ^pagename=About-Us$ [NC]
                    RewriteRule ^Default\.aspx$  http://www.domain.co.uk/About-Us/? [R=301,L,NC]</code>
                    ```
                    Test it and let me know...
                    

                    Keith

                    1 Reply Last reply Reply Quote 0
                    • 1 / 1
                    • First post
                      Last post
                    • Avoiding duplicate content in manufacturer's [of single product] website
                      0
                      1
                      25

                    • Duplicate Content That Isn't Duplicated
                      LoganRay
                      LoganRay
                      0
                      5
                      140

                    • Duplicate content URLs from bespoke ecommerce CMS - what's the best solution here?
                      TimHolmes
                      TimHolmes
                      0
                      2
                      92

                    • Duplicate content reported on WMT for 301 redirected content
                      SEOAccount32
                      SEOAccount32
                      0
                      6
                      328

                    • How to use a 301 Redirect when the first 301 Redirect is not the same as what's indexed?
                      PatriotOutfitters81
                      PatriotOutfitters81
                      0
                      3
                      66

                    • Duplicate URL's
                      Horizon
                      Horizon
                      0
                      5
                      672

                    • What's the best SEO practice for having dynamic content on the same URL?
                      Igal_Zeifman
                      Igal_Zeifman
                      0
                      3
                      1.3k

                    • We are changing ?page= dynamic url's to /page/ static urls. Will this hurt the progress we have made with the pages using dynamic addresses?
                      h3counsel
                      h3counsel
                      0
                      3
                      806

                    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