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. How best to deal with www.home.com and www.home.com/index.html

    How best to deal with www.home.com and www.home.com/index.html

    Technical SEO Issues
    4 3 494
    • 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.
    • Creatomatic
      Creatomatic last edited by

      Firstly, this is for an .asp site - and all my usual ways of fixing this (e.g. via htaccess) don't seem to work.

      I'm working on a site which has www.home.com and www.home.com/index.html - both URL's resolve to the same page/content.

      If I simply drop a rel canonical into the page, will this solve my dupe content woes?

      The canonical tag would then appear in both www.home.com and www.home.com/index.html cases.

      If the above is Ok, which version should I be going with?

      - or -

      Thanks in advance folks,
      James @ Creatomatic

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

        Hi James,

        If you will have the  on both of the pages it should do the trick.

        Or another possible solution would be to create a 301 redirect for www.home.com/index.html -> www.home.com/

        Beware if you use both redirect and canonical have the same link there.

        I have seen infinite loops created with canonical and 301 created for search engines. Canonical was pointing to the "/" version and the redirect was with the non - "/".

        I hope this helps.

        greetings,

        Istvan

        Creatomatic 1 Reply Last reply Reply Quote 1
        • Creatomatic
          Creatomatic @Keszi last edited by

          Many thanks Istvan - I'll give that a try.

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

            Or another possible solution would be to create a 301 redirect for

            www.home.com/index.html -> www.home.com/

            Would be the preferred method, if not available then use the Canonical option.

            Here is a great SEOMoz blog post

            Here is a quote pertaining to your issue:

            "Multiple Versions of the Homepage

            This is another common mistake.  Potentially a homepage URL could be access through the following means, depending on how it has been built -

            http://seomoz.org
            http://www.seomoz.org/home.html
            http://www.seomoz.org/index.html

            If the homepage can be accessed via these type of URLs, they should 301 to the correct URL which in this case would be www.seomoz.org.

            Quick caveat - the only exception would be if these multiple versions of the homepage served a unique purpose, such as being shown to users who are logged in or have cookies dropped.  In this case, you'd be better to use rel=canonical instead of a 301."

            Hope it helps.

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            • Page Rank Being Split Between www.website.com and http://website.com
              DmitriiK
              DmitriiK
              0
              2
              25

            • Google has indexed m.freedomltd.com/hen-nights/party-locations/london//cocktail-training/ missing a folder.
              GPainter
              GPainter
              0
              5
              106

            • 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

            • How best to deal with www.home.com and www.home.com/index.html
              Creatomatic
              Creatomatic
              0
              6
              315

            • Ideally should a 301 or 302 redirect be used from https://www.site.com to http://www.site.com? Is there a valid reason to use a 302 in this situation or would using a 301 have any negative impact on seo?
              Unity
              Unity
              0
              2
              317

            • In order to improve my google rank, I recently changed my url from http://www.helpwithassignment.com/nursing-assignment-help to http://www.helpwithassignment.com/Assignment-Help/nursing-assignment-help
              RichaS
              RichaS
              1
              14
              1.1k

            • 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

            • Duplicate Homepage: www.mysite.com/ and www.mysite.com/default.aspx
              MaryAnneG
              MaryAnneG
              0
              4
              2.3k

            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