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
            • Google has indexed m.freedomltd.com/hen-nights/party-locations/london//cocktail-training/ missing a folder.
              GPainter
              GPainter
              0
              5
              106

            • Moving from www.domain.com/nameofblog to www.domain.com/blog
              cathibanks
              cathibanks
              0
              6
              153

            • What is the best practice to seperate different locations and languages in an URL? At the moment the URL is www.abc.com/ch/de. Is there a better way to structure the URL from an SEO perspective?
              irvingw
              irvingw
              0
              2
              64

            • 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

            • To 301 redirect or not to 301 redirect? duplicate content problem www.domain.com and www.domain.com/en/
              Chris-CA
              Chris-CA
              0
              5
              456

            • How do I stop www.mysite.com/ showing as a duplicate of www.mysite.com
              Dr-Pete
              Dr-Pete
              0
              5
              509

            • 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