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. Link Building
    4. Linking to root domain or index page

    Linking to root domain or index page

    Link Building
    6 5 2.5k
    • 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.
    • ArtiKalra
      ArtiKalra last edited by

      While link building, should I link to index page of my website i.e www.mydomainname.com/index.html or should I link to root domain i.e www.mydomainname,com

      Also I see duplicate title error for index page and root domain in error statistic. How can I get rid of this.

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

        Hi Arti,

        You'll just need to create a 301 redirect from www.yoursite.com/index.html to www. yoursite.com. This will permanently eliminate the /index.html version (which is a duplicate page) and fix the duplicate content error.

        After that, build links to www.yoursite.com.

        Hope this help. If you need more info on how to do the 301 redirect just let me know.

        ArtiKalra 1 Reply Last reply Reply Quote 1
        • Guan
          Guan last edited by

          If you have wordpress you can add

          <code>php
          header("HTTP/1.1 301 Moved Permanently"); header("Location: ".get_bloginfo('url'));  exit();  ?></code>
          

          <code>to your 404 page.</code>

          BedeFahey 1 Reply Last reply Reply Quote 0
          • ArtiKalra
            ArtiKalra @Anthony_NorthSEO last edited by

            Hi Anthony, Thanks for your reply. Does that mean that I should actually remove index.html from my website. Also please help me for 301 redirect. Rgds Arti

            1 Reply Last reply Reply Quote 0
            • BedeFahey
              BedeFahey @Guan last edited by

              To me, that's not what your 404 page is for. I wouldn't recommend doing it. What happens if they typo something, or hit a bad link some other way? There's no message to tell them what happened and it creates a confusing user experience.

              Better, in my opinion, to redirect the file individually

              Arti, there's a good article on SEOmoz about redirects. Down the bottom, there are some how-to guides on how to do things like 301's. Just be careful of infinite loops if you're using apache.

              http://www.seomoz.org/blog/url-rewrites-and-301-redirects-how-does-it-all-work

              1 Reply Last reply Reply Quote 1
              • Cyrus-Shepard
                Cyrus-Shepard last edited by

                Hi Arti,

                Generally, you want to link to your root domain. Many common website templates link to home as /index.html, but that really hasn't been necessary for years.

                The easiest way to fix this would be to add a canonical tag in your homepage, which is the /index.html file. It would go in the section and look like this:

                After you add this, when you look at your source code for your homepage, you should see this tag in there from whatever address you reached the page from.

                There's a lot of information on duplicate content out there, and a lot of different ways to fix the same problem. Here's a good overview of the subject:

                http://www.seomoz.org/blog/duplicate-content-in-a-post-panda-world

                Best of luck with your SEO.

                1 Reply Last reply Reply Quote 1
                • 1 / 1
                • First post
                  Last post
                • Subdomain links vs root domain links? Are the less valuable?
                  Yeeply.com
                  Yeeply.com
                  0
                  2
                  351

                • My Domain Authority is 1 and has number "0" link from Root Domains! What is my fault?
                  Andy-Halliday
                  Andy-Halliday
                  0
                  4
                  250

                • If i get link pointing to a specific page , will that link add up to the count of linking root domains too ?
                  RobMay
                  RobMay
                  1
                  4
                  81

                • What is a good ratio of total links to linking root domains?
                  Hannah_Smith
                  Hannah_Smith
                  0
                  3
                  2.0k

                • Root Domain Link for Affiliate's Link
                  PhilTomm
                  PhilTomm
                  0
                  4
                  194

                • Page links vs. domain links
                  watkinsheating
                  watkinsheating
                  0
                  7
                  1.8k

                • How to improve (ASAP) the linking root domain, the followed linking root domains and the linking C-Blocks? Linkbuilding (or whatever) techniques.
                  Kirram
                  Kirram
                  0
                  5
                  2.4k

                • Will No Follow Links count toward your root domain links for Domain Authority?
                  MediaCause
                  MediaCause
                  0
                  5
                  2.1k

                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