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. When doing internal linking back to your home/index file what is the best coding course of action?

    When doing internal linking back to your home/index file what is the best coding course of action?

    Technical SEO Issues
    7 4 109
    • 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.
    • CharlesDaniels
      CharlesDaniels last edited by

      When doing internal linking back to your home/index page is it best to set the code as linked to "www.thedomain.com" or "www.thedomain.com/" or just "/" - I'm attempting some canonicalization and our programmer is concerned about linking to just the URL as he's saying it's going to be viewed as an external source.  We have www redirects in place that come back to just www.thedomain.com and a redirect to send the www.thedomain.com/index.php back to just www.thedomain.com .  Any help would be appreciated, thank you!

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

        linking to the http://www.domain.com is the same as linking to / just develop the way which best suits your needs. The most important thing to do to avoid duplicate issues is to set the 301 to redirect everything to the same page thing you've already done so really there is no difference in that. About using the full url there's no issue on google seeing that as an external link since it's poiting to the same domain. hope this helps!

        CharlesDaniels 1 Reply Last reply Reply Quote 1
        • Saijo.George
          Saijo.George last edited by

          Since www.thedomain.com is the canonical version. I would link to http://www.thedomain.com from the other pages.

          CharlesDaniels 1 Reply Last reply Reply Quote 1
          • Robert_G
            Robert_G last edited by

            When linking to internal pages the preferred method is /.

            Why?

            Because it helps the speed of your site by saving a DNS query.

            CharlesDaniels 1 Reply Last reply Reply Quote 1
            • CharlesDaniels
              CharlesDaniels @Robert_G last edited by

              That's what had our programmer displeased.  Appreciate the assistance!

              1 Reply Last reply Reply Quote 0
              • CharlesDaniels
                CharlesDaniels @mememax last edited by

                Helped a lot, thanks for taking the time!

                1 Reply Last reply Reply Quote 0
                • CharlesDaniels
                  CharlesDaniels @Saijo.George last edited by

                  That was my initial plan but our programmer didn't like the 'external' call being made.  So we went with just '/' keeping it all on site.  Man I love the Q & A here.  Thanks for the help!

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post
                  • Dealing with broken internal links/404s. What's best practice?
                    Adam_SEO_Learning
                    Adam_SEO_Learning
                    0
                    4
                    582

                  • Linking to my Site so I should Link Back?
                    Singularitie
                    Singularitie
                    0
                    2
                    86

                  • Correct linking to the /index of a site and subfolders: what's the best practice? link to: domain.com/ or domain.com/index.html ?
                    CleverPhD
                    CleverPhD
                    0
                    4
                    245

                  • WordPress - How to stop both http:// and https:// pages being indexed?
                    Dr-Pete
                    Dr-Pete
                    0
                    4
                    1.9k

                  • What are the best tools for back links?
                    Thos003
                    Thos003
                    0
                    5
                    258

                  • No crawl code for pages of helpful links vs. no follow code on each link?
                    GeorgeAndrews
                    GeorgeAndrews
                    0
                    4
                    338

                  • Paging Links Code - Best Way?
                    AlanMosley
                    AlanMosley
                    0
                    2
                    431

                  • I have a site that has both http:// and https:// versions indexed, e.g. https://www.homepage.com/ and http://www.homepage.com/. How do I de-index the https// versions without losing the link juice that is going to the https://homepage.com/ pages?
                    fthead9
                    fthead9
                    0
                    3
                    729

                  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