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. Which index page should I canonical to?

    Which index page should I canonical to?

    Intermediate & Advanced SEO
    3 3 232
    • 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.
    • Ryan_Phillips
      Ryan_Phillips last edited by

      Hello!

      I'm doing a routine clean up of my code and had a question about the canonical tag.

      On the index page, I have the following:

      I have never put any thought into which index path is the best to use.

      http://www.example.com

      http://www.example.com/

      http://www.example.com/index.php

      Could someone shed some light on this for me?  Does it make a difference?

      Thanks!

      Ryan

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

        Your canonical is correct, (this is your root domain), also is a good practice, all the links from deeper pages pointing to your home page should be pointed to http://www.example.com/.

        Additionally is a good practice to use the 301 redirect (avoid duplicates on the home page):
        http://example.com/ redirect to http://www.example.com/
        http://example.com/index.php redirect to http://www.example.com/
        http://www.example.com/index.php redirect to http://www.example.com/

        Hope it helps

        Francisco_Meza 1 Reply Last reply Reply Quote 2
        • Francisco_Meza
          Francisco_Meza @SharewarePros last edited by

          Make sure to backup your files before 301 and that you have FTP access just in case something happens.

          I agree with Claudio's answer.

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          • Index, follow on a paginated page with a different rel=canonical URL
            Nigel_Carr
            Nigel_Carr
            0
            2
            63

          • What to do when your home page an index for a series of pages.
            donford
            donford
            0
            7
            154

          • Incorrect cached page indexing in Google while correct page indexes intermittently
            MikeRoberts
            MikeRoberts
            0
            2
            298

          • Are pages with a canonical tag indexed?
            fablau
            fablau
            0
            17
            11.5k

          • To index or not to index search pages - (Panda related)
            HiveDigitalInc
            HiveDigitalInc
            0
            2
            315

          • E Commerce product page canonical and indexing + URL parameters
            Dr-Pete
            Dr-Pete
            0
            3
            756

          • Why are new pages not being indexed, and old pages (now in robots.txt) remain in the index?
            KeriMorgret
            KeriMorgret
            0
            3
            378

          • Member request pages, indexed or no indexed?
            DougRoberts
            DougRoberts
            0
            4
            335

          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