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. Web Design
    4. Canonical and Sitemap issue

    Canonical and Sitemap issue

    Web Design
    9 5 127
    • 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.
    • scarebearz
      scarebearz last edited by

      Hi all,

      I was told that I could change my homepage Canonical tag to match that of my XML sitemap, this sitemap is being generated for me automatically and shows the homepage as e.g. https://www.mysite.com/index.html, yet my Canonical tag has been set to https://www.mysite.com.

      Google currently shows as https://www.mysite.com/ being indexed, but https://www.mysite.com/index.html is not currently displayed in search results.

      Can someone please tell me if I should change the Canonical to the index.html version, or if I should do nothing, or remove the Canonical tag altogether?

      Thank you for looking.

      1 Reply Last reply Reply Quote 0
      • Linda-Vassily
        Linda-Vassily last edited by

        What are you trying to achieve? Do you particularly want the index.html version to be the canonical? The https://www.mysite.com/ version is more straightforward and what most people would expect your homepage URL to be.

        Unless there is some pressing reason to do otherwise, I'd leave it the way it is.

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

          Hi,

          Thanks, basically I was concerned that Google may not like that https://www.mysite.com/ was not in the sitemap, yet index.html was and the canonical was pointing to https://www.mysite.com.

          If that makes any sense....

          Linda-Vassily 1 Reply Last reply Reply Quote 0
          • Joe_Stoffel
            Joe_Stoffel last edited by

            I agree with Linda here, I would leave the canonical tag as is. It is a cleaner, better looking URL for the SERPs. If anything, manually update the XML file to reflect the canonical version of the homepage. The main purpose of the XML sitemap is to help search engines crawl and index a website. The homepage is going to be the most frequently crawled page so Google will not have a problem finding it.

            Also, do not worry about Google disliking the canonical pointing to .com instead of /index.html. If Google determines that is not the ideal URL for it's index it will ignore the canonical tag.

            Linda-Vassily 1 Reply Last reply Reply Quote 2
            • Linda-Vassily
              Linda-Vassily @scarebearz last edited by

              I see your point, and don't worry about it. Sitemaps help Google find all of your pages and can provide certain other information, but they are not required so no need to overthink them. In general Google is pretty good at finding what it needs to find. And it will certainly find your homepage.

              1 Reply Last reply Reply Quote 1
              • Linda-Vassily
                Linda-Vassily @Joe_Stoffel last edited by

                Yes, that's a good point. Canonicals are suggestions for Google, not commands.

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

                  Thank you both, I'll leave it as it is, I'm not able to edit the XML my side sadly.

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

                    I agree with the others. Given "https://www.mysite.com/index.html is not currently displayed in search results", in all likelihood it is being redirected to https://www.mysite.com (and should be). So you don't want to change the canonical to the index.html version of the page only to have it redirected back to https://www.mysite.com. It'll unnecessarily slow the site and might even create a loop.

                    Guest 1 Reply Last reply Reply Quote 1
                    • Guest
                      Guest @DonnaDuncan last edited by

                      This post is deleted!
                      1 Reply Last reply Reply Quote 1
                      • 1 / 1
                      • First post
                        Last post
                      • Is the User Sitemap dead?
                        WebMarkets
                        WebMarkets
                        1
                        4
                        174

                      • Do we need both an .XML Sitemap and a .aspx sitemap?
                        gatorpool
                        gatorpool
                        0
                        3
                        358

                      • Sitemap Wordpress
                        BlueprintMarketing
                        BlueprintMarketing
                        0
                        3
                        228

                      • Sitemap Update Frequency?
                        jesse-landry
                        jesse-landry
                        0
                        5
                        6.1k

                      • Duplicate content issue
                        Debdulal
                        Debdulal
                        0
                        5
                        241

                      • Canonical url with pagination
                        Worship_Digital
                        Worship_Digital
                        0
                        10
                        10.8k

                      • Canonical Tag
                        RyanKent
                        RyanKent
                        0
                        4
                        599

                      • Crawl Budget vs Canonical
                        trentc
                        trentc
                        0
                        4
                        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