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. Getting Started
    4. Homepage duplicated content - 301 redirection - "Rel="canonical" - Headache

    Homepage duplicated content - 301 redirection - "Rel="canonical" - Headache

    Getting Started
    12 3 2.9k
    • 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.
    • mdmoz
      mdmoz last edited by

      Thank you Thomas for your time and answers.

      I added the following code to my htaccess file, but then could not access my site:

      Options +FollowSymLinks
      RewriteEngine On
      RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*index\.html?\ HTTP/
      RewriteRule ^(.*)index\.html?$ http://www.mydomain.com/$1 [R=301,L]
      

      This is the error when I checked my site:

      Internal Server Error

      The server encountered an internal error or misconfiguration and was unable to complete your request.

      Please contact the server administrator, webmaster@********** and inform them of the time the error occurred, and anything you might have done that may have caused the error.

      More information about this error may be available in the server error log.

      Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

      checking with my hosting company about the IP error in the meantime.

      BlueprintMarketing 1 Reply Last reply Reply Quote 0
      • BlueprintMarketing
        BlueprintMarketing @mdmoz last edited by

        Ok are you on a CMS what type of code?

        removing the code and placing this in RewriteEngine On RewriteRule ^index.html$ / [R=301,L]

        http://www.webconfs.com/how-to-redirect-a-webpage.php

        http://moz.com/blog/apache-redirect-an-index-file-to-your-domain-without-looping

        http://moz.com/learn/seo/redirection

        We we have to add the  removed the /

        http://stackoverflow.com/questions/13235180/how-to-remove-trailing-slash-for-folder-index-html-when-index-html-is-stri

        See this as well

        http://dense13.com/blog/2012/10/29/removing-index-html-with-mod_rewrite-in-htaccess/

        RewriteEngine On 
        RewriteCond %{HTTP_HOST} ^www.mydomain.com$ [NC] 
        RewriteRule ^(.*)$ http://mydomain.com/$1 [R=301,L]

        Redirect 301 /index.htm http://mydomain.com

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

          removed and added RewriteEngine On RewriteRule ^index.html$ / [R=301,L]

          now index.html is redirected to / successfully.

          How can I ask Mozpro to check again? I can still see duplicate content warning in my Mozpro account.

          Should I go for Crawl test menu?

          BlueprintMarketing 1 Reply Last reply Reply Quote 1
          • mdmoz
            mdmoz last edited by

            Just checked my site at http://www.siteliner.com/

            Still see duplicated warning for www.mysite.com and www.mysite.com/index.html

            Headache :d

            BlueprintMarketing 2 Replies Last reply Reply Quote 0
            • BlueprintMarketing
              BlueprintMarketing @mdmoz last edited by

              The

              duplicated warning for www.mysite.com and www.mysite.com/index.html

              will stay for a week

              Or unfortunately you would have to delete your campaign or start a new campaign that would let you because moz indexes and checks for those errors once week it would need a new campaign but I would not worry about the errors that showing you now that you have corrected this

              Awesome excited about redirect work. I did not know what to tell you if that did not. Work

              Okay you can crawl your domain and get very similar results almost the same thing. Using this

              https://moz.com/researchtools/crawl-test

              If your site is under 500 pages and you want quick confirmation in addition you can use this tool for free up to 500 pages

              http://www.screamingfrog.co.uk/seo-spider/

              So use this tool

              If you want I can verify it as well for you

              https://moz.com/researchtools/crawl-test

              If it is your first time using the Moz campaign tool and you have no history to worry about you can simply start a new campaign. In addition to these tests

              I hope this helps,

              Tom

              1 Reply Last reply Reply Quote 0
              • BlueprintMarketing
                BlueprintMarketing @mdmoz last edited by

                Nice!

                Yes this will check it 2 times a day if needed

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

                  If you are still having problems could you send me your domain either in the form here or privately?

                  I am psyched that the redirect worked that is really good.

                  These other issues I can troubleshoot for you very quickly using some tools I have in addition to the excellent tools Moz has.

                  Download a free copy of screaming frog just a have it is honestly worth it as it is free and awesome.

                  Can I be of more assistance,

                  Tom

                  1 Reply Last reply Reply Quote 2
                  • BlueprintMarketing
                    BlueprintMarketing @mdmoz last edited by

                    It could be cache

                    Try

                    http://codeblow.com/questions/getting-rid-of-index-html-from-url-and-adding-www-with-a/

                    try RewriteEngine On 
                    RewriteCond %{HTTP_HOST} ^mydomain.com$ [NC] 
                    RewriteRule ^(.*)$ http://www.mydomain.com/$1 [R=301,L]

                    Redirect 301 /index.htm http://www.mydomain.com

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

                      I was just about to ask the same question and about to do a 301 redirect myself.  Mine question is should I use www. or just http://site.com?  I know its not good to have both as it could be cited as duplicate content, but what do you all think?   My site is ***techhelp.fake     (not really .fake and its not a TLD or whatever.

                      BlueprintMarketing 1 Reply Last reply Reply Quote 0
                      • BlueprintMarketing
                        BlueprintMarketing @eugenecomputergeeks last edited by

                        Hi

                        here is how

                        http://www.webconfs.com/how-to-redirect-a-webpage.php

                        http://moz.com/learn/seo/redirection

                        To determine rather not you should redirect to www. or no-www

                        use http://moz.com/researchtools/ose

                        to figure out which has more back links pointing to it then 301 redirect to that.

                        In terms of if one is better than the other there is really not a difference however if they are both equal meeting having no back links or identical.

                        You might want to go with www. simply because having the subdomain allows you to do some more things like add Google page speed other miscellaneous things in the future.

                        But really go with the one with the most links if there are no links then choose the one you want going to Google webmaster tools to make sure you add both

                        examples.com

                        www.example.com

                        to Google webmaster tools than pick the same URL you chose to redirect to as your main URL Google will then only send Google bot out looking for that URL

                        Here

                        https://support.google.com/webmasters/answer/44231?hl=en

                        Hope this helps,

                        Tom

                        1 Reply Last reply Reply Quote 0
                        • 1 / 1
                        • First post
                          Last post
                        • Where find the "How to Do a Competitor Analysis for SEO" **Client Template**?
                          MaxDevergori
                          MaxDevergori
                          1
                          3
                          188

                        • Keyword "added after Fev 08, 2016"
                          Redactio
                          Redactio
                          0
                          5
                          267

                        • Duplicate Content after Moz Site Audit
                          ATP
                          ATP
                          0
                          6
                          205

                        • Need help fixing the duplicate content that keeps growing
                          Taiger
                          Taiger
                          0
                          9
                          145

                        • How is "visit" defined?
                          kuchenchef
                          kuchenchef
                          0
                          3
                          110

                        • A lot of duplicate content issues - does Moz understand canonical URL?
                          max.favilli
                          max.favilli
                          0
                          3
                          656

                        • How to locate page with the duplicate title? (Crawl Diagnostics - Duplicate Titles Warning)
                          ProductPearson
                          ProductPearson
                          0
                          2
                          218

                        • Moz Pro Trial...."Oops! Try refreshing the page"
                          KeriMorgret
                          KeriMorgret
                          0
                          4
                          205

                        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