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. Content & Blogging
    4. Index.html vs. default.html

    Index.html vs. default.html

    Content & Blogging
    7 3 2.7k
    • 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.
    • bhsiao
      bhsiao last edited by

      Hi,

      I have a website that is about 7 years old. I had been using index.html as the home page. When I redesigned my site about 3 months ago I changed it to default.html. The old index.html page was still on my server. I just realized my mistake. All of my links to the home page lead to the new default.html.

      However, people are still landing on the old index.html. I have change the old index.html to the new design  but that means i have 2 "home" pages out there. Should i delete one? Should I leave them both there but use the canonical tag for one so it is not considered duplicate content?

      What is best for my rankings?

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

        I would recommend friendly URLs which avoids this entire issue.

        More specifically, I am suggesting your home page URL be something like www.mydomain.com, not www.mydomain.com/index.html nor www.mydomain.com/default.html

        Whatever you decide, the best solution would be to 301 your old home page(s) to your new home page. You would also want to update any internal site links to your current home page. If you have control or influence to update any external links, do that as well.

        bhsiao 1 Reply Last reply Reply Quote 1
        • bhsiao
          bhsiao @RyanKent last edited by

          If I type in mydomain.com, it brings me to the index.html version of my home page. So, I can 301 the default.html version to go to index.html and then make all my internal links go to index.html

          Am I understanding you correctly? Thanks!

          RyanKent bhsiao 3 Replies Last reply Reply Quote 0
          • Zitana
            Zitana last edited by

            I agree with Ryan. 301-redirects to mydomain.com would be the best solution since index.html is the default file on your web server and visitors prefer remembering mydomain.com in stead of mydomain.com/default.html. Besides, unless "default" is a keyword, "default.html" doesn't have any seo value. In fact, it's recommended to use folders in stead of file names.

            You can change the default page in your web server's apache configuration however.

            1 Reply Last reply Reply Quote 1
            • RyanKent
              RyanKent @bhsiao last edited by

              Can you share your domain name? It would make this a bit easier with specific examples.

              The question I have for you is, when I type in www.yourdomain.com, what is the URL that appears in the browser? Is that URL www.yourdomain.com? or www.yourdomain.com/index.html? Also, take a look and see is you have any ReWrite's happening in your htaccess file.

              In short, I recommend you 301 www.yourdomain.com/default.html to www.yourdomain.com IF you have any links (internal or external) to the default.html file. You would only make this redirect if your home page actually is www.yourdomain.com. If it is actually www.yourdomain.com/index.html then you can use that instead.

              It gets confusing speaking in general terms and trying to address all the possibilities.

              1 Reply Last reply Reply Quote 0
              • bhsiao
                bhsiao @bhsiao last edited by

                Thanks for your help, http://www.normas9000.com

                1 Reply Last reply Reply Quote 0
                • RyanKent
                  RyanKent @bhsiao last edited by

                  Thank you.

                  If that was my site, I would redirect your /index.html and /default.html pages to http://www.normas9000.com/.

                  I would then update your canonical as well. Lastly, there is no reason to have both the default and index.html pages so I would remove one of them.

                  1 Reply Last reply Reply Quote 1
                  • 1 / 1
                  • First post
                    Last post
                  • Indexing but Not Ranking
                    SneakerFiles
                    SneakerFiles
                    0
                    5
                    71

                  • Sitemaps XML or the HTML?
                    Alick300
                    Alick300
                    0
                    2
                    397

                  • Shopify Blog vs Wordpress
                    Everett
                    Everett
                    0
                    11
                    11.5k

                  • In my website all the pages are not indexed by google..what to do for the same
                    Muna
                    Muna
                    0
                    3
                    52

                  • Smaller Index
                    Everett
                    Everett
                    0
                    3
                    141

                  • I started a Wordpress blog, google indexed it...
                    William.Lau
                    William.Lau
                    0
                    2
                    191

                  • Moving a html site into Wordpress
                    evolvingSEO
                    evolvingSEO
                    0
                    19
                    502

                  • Index pdf files but redirecto to site
                    gmellak
                    gmellak
                    0
                    5
                    1.0k

                  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