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 Errors

    Duplicate Content Errors

    Technical SEO Issues
    16 2 997
    • 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.
    • AlanMosley
      AlanMosley last edited by

      They are seen as 2 different pages to search engines adn spliting your rank,

      Here is a tutoprial just for this problem

      http://perthseocompany.com.au/seo/tutorials/how-to-fix-canonical-issues-involving-the-default-page

      You may want to have a look at this one also for yourt www and non www pages.

      http://perthseocompany.com.au/seo/tutorials/how-to-fix-canonical-domain-name-issues

      Banknotes 1 Reply Last reply Reply Quote 0
      • Banknotes
        Banknotes @AlanMosley last edited by

        Hi Alan,I appreciate the links and now I know what the problem is... sadly though I am not able to access IIS as this is running on Godaddy...  I guess I will have to implement something in the global.asax file?I have this code in the global.asax to handle the www and non www page issue. string request = HttpContext.Current.Request.Url.ToString().ToLower();if (request.Contains("http://antiquebanknotes.com")){   HttpContext.Current.Response.Clear(); HttpContext.Current.Response.Status = "301 Moved Permanently"; HttpContext.Current.Response.AddHeader("Location", request.Replace       (http://antiquebanknotes.com", "http://www.antiquebanknotes.com));}

        AlanMosley Banknotes 13 Replies Last reply Reply Quote 0
        • AlanMosley
          AlanMosley @Banknotes last edited by

          Using iis writes to teh web.config file fior you, the tutorials show you the code it writes, you can just copy it into the web.config

          There is also some tuorials on how to make a httpmodule that works much like the global.asax file but intercepts the requerst before it reaches the website, much better preformace.

          Also i cheked your non www and it resolved to this

          http://www.antiquebanknotes.com/antiquebanknotes/default.aspx

          I notive above you dont have "" on the first url, is that just a typo?

          this tutorial uses the httpmodule, it resolves the other way from www to nonwww, but you can alter it

          http://perthseocompany.com.au/seo/tutorials/using-ihttpmodule-c-sharp

          or you can just edit the web.config as I sugested above

          1 Reply Last reply Reply Quote 1
          • Banknotes
            Banknotes @Banknotes last edited by

            Ah, I see...   I have added the snippets to the web config for default page and www vs non www pages.   it seems like the www issue is working correctly.  I will have to work on the default issue as it seems to ignore my rule.

            This is what I have done on that score.

            <rule name="CanonicalHostNameRule1"><match url="(.*)"><conditions><add input="{HTTP_HOST}" pattern="^antiquebanknotes.com$" negate="true"></add></conditions>
                      <action type="Redirect" url="<a href=" http:="" www.antiquebanknotes.com="" {r:1"="">http://www.AntiqueBanknotes.com/{R:1}" />
                   </action></match></rule>

            Thanks for all your help!

            1 Reply Last reply Reply Quote 0
            • AlanMosley
              AlanMosley @Banknotes last edited by

              Add the rule on this page to it
              http://perthseocompany.com.au/seo/tutorials/how-to-fix-canonical-issues-involving-the-default-page

              it should work no worries

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

                Sorry,  I forgot to add that I put that rule in before but it doesn't seem to be working for me.  Not sure why but sadly it's time for my day job so I will take a look tonight.  🙂

                1 Reply Last reply Reply Quote 0
                • AlanMosley
                  AlanMosley @Banknotes last edited by

                  You have an error above, you should have 
                  

                  pattern="^www.antiquebanknotes.com$"

                  not pattern="^antiquebanknotes\.com$"
                  

                  The other rule does work i just tested it

                  When adding it place stright under the last rule inside the same rules tag, 
                  there should only be one rules tag
                  ```
                  1 Reply Last reply Reply Quote 0
                  • Banknotes
                    Banknotes @Banknotes last edited by

                    I thought this pattern:

                    ^antiquebanknotes.com

                    was ok for me bcause I am looking to take AntiqueBanknotes.com and make it into www.AntiqueBankNotes etc

                    I think my hostname redirect is working ok.... it's the default.aspx redir that isn't working.  I have it in the same Rules section.

                    Look ok?

                    <rule name="Default Page" enabled="true" stopprocessing="true"><match url="^default.aspx$"><conditions logicalgrouping="MatchAll"><add input="{REQUEST_METHOD}" pattern="GET"></add></conditions>
                              <action type="Redirect" url="/"></action></match></rule>

                    1 Reply Last reply Reply Quote 0
                    • AlanMosley
                      AlanMosley @Banknotes last edited by

                      What this line is saying is, if not antiquebanknotes.com then redirect, note the negate=true

                      <add input="{HTTP_HOST}" pattern="^.antiquebanknotes.com$" negate="true"></add>

                      What you should have is

                      <system.webserver><rewrite><rules><rule name="CanonicalHostNameRule1"><match url="(.*)"><conditions><add input="{HTTP_HOST}" pattern="^www.antiquebanknotes.com$" negate="true"></add></conditions>
                                <action type="Redirect" url="http://www.antiquebanknotes.com/{R:1}"></action></match></rule>
                             <rule name="Default Page" enabled="true" stopprocessing="true"><match url="^default.aspx$"><conditions logicalgrouping="MatchAll"><add input="{REQUEST_METHOD}" pattern="GET"></add></conditions>
                                <action type="Redirect" url="/"></action></match></rule></rules></rewrite></system.webserver>

                      Try that, let me know when you have it in place and I will test it for you.

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

                        Ok,  I have that in place...  if I am testing right, the default.aspx isn't working.   Maybe it's a hosting issue?

                        1 Reply Last reply Reply Quote 0
                        • AlanMosley
                          AlanMosley @Banknotes last edited by

                          nor is the non www redirected to the www

                          the code i gave you should be inside the configuration tag

                          <configuration></configuration>

                          place here

                          and you should only have one <system.webserver>tag</system.webserver>

                          if you want you cany send me your web.config and ill have a look

                          mosley@thatsit.net.au

                          1 Reply Last reply Reply Quote 0
                          • AlanMosley
                            AlanMosley @Banknotes last edited by

                            Cant see anything wrong with web.config

                            I should of asked before if you are using IIS7?

                            if so try to debug with the article http://blogs.iis.net/ruslany/archive/2008/10/30/debug-and-troubleshoot-rewrite-rules-easily.aspx

                            I have the same code as you in many sites all working fine

                            you may need to restart IIS?

                            1 Reply Last reply Reply Quote 1
                            • Banknotes
                              Banknotes @Banknotes last edited by

                              It's II6 hosted on Godaddy.   I will see if I can get my IIS restarted.

                              1 Reply Last reply Reply Quote 0
                              • AlanMosley
                                AlanMosley @Banknotes last edited by

                                I dont think it works on IIS6

                                There is your problem.

                                You can fix your www problem by code, see tutorials, but fixing the default page is not so easy. as in ASP.Net you can not detect the difference between domain.com and domain.com/default.aspx

                                Best thing you can do is make sure all your internal links point to domain.com and not domain.com/default.aspx any external links pointing to default.aspx will be watsed, but sicne no internal links point to default.aspx you are unlikely to get any mopre external links pointing to it.

                                GoDaddy much be using old servers.

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

                                  They offer II7 but I didn't see any point to it...

                                  Now it's dawning on me I may need to reconsider.  🙂

                                  1 Reply Last reply Reply Quote 0
                                  • 1 / 1
                                  • First post
                                    Last post
                                  • When is Duplicate Content Duplicate Content
                                    AMHC
                                    AMHC
                                    0
                                    6
                                    169

                                  • How to fix duplicate page content error?
                                    RGEQUIPNET
                                    RGEQUIPNET
                                    0
                                    7
                                    1.3k

                                  • I am trying to correct error report of duplicate page content. However I am unable to find in over 100 blogs the page which contains similar content to the page SEOmoz reported as having similar content is my only option to just dlete the blog page?
                                    evolvingSEO
                                    evolvingSEO
                                    0
                                    4
                                    344

                                  • Duplicate content error - same URL
                                    KeriMorgret
                                    KeriMorgret
                                    1
                                    6
                                    439

                                  • Duplicate content error from url generated
                                    pauledwards
                                    pauledwards
                                    0
                                    4
                                    333

                                  • Duplicate page content errors in SEOmoz
                                    AlanMosley
                                    AlanMosley
                                    0
                                    4
                                    612

                                  • Crawl Errors and Duplicate Content
                                    RyanKent
                                    RyanKent
                                    0
                                    9
                                    732

                                  • Why are my pages getting duplicate content errors?
                                    KeriMorgret
                                    KeriMorgret
                                    0
                                    8
                                    928

                                  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

                                  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