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. Ending URLs in .html versus /

    Ending URLs in .html versus /

    Intermediate & Advanced SEO
    5 5 13.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.
    • Travis-W
      Travis-W last edited by

      Hi there!

      Currently all the URLs on my website, even the home page, end it .html, such as http://www,consumerbase.com/index.html

      Is this bad?
      Is there any benefit to this?

      Should I remove it and just have them end with a forward slash?
      If I 301 redirect the old .html URLs to the forward slash URLs, will I lose PA?

      Thanks!

      1 Reply Last reply Reply Quote 0
      • jesse-landry
        jesse-landry last edited by

        • Not bad

        • Benefit only comes from a usability preference. Do you think your readers would rather see it without the html suffix? Some people think so.. I personally don't think it matters at all but a lot of people will say "shorter is better." It also maximizes your compatibility should you ever change your format from an html to an active server page or something of the sort. (i think that's pretty rare though.)

        • No you will not lose PA. 301s maintain link juice (for the most part.)

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

          Hey there!

          There's no benefit or negative effect of this either way - so there's really nothing to worry about here.

          Furthermore, if you type in http://www.consumerbase.com/ you get redirected to the .html version and it's the same for internal pages.  This means you've not got any problems with duplicate URLs or content.

          In short, everything is in order and from an SEO point of view there's no reason to make the change - all is well!  The only reason why you may want to make the change is from a user experience point of view - but I don't think visitors to your site will be concerned with .html extensions at all.

          Hope this helps to put your mind at rest!

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

            In my experience you will generate more consistent inbound links to the root url - http://www.consumerbase.com/index.html - if you were to use that as the root (canonical) url and do the following

            1. Ask anyone linking to /index.html to link to http://www.consumerbase.com/
            2. Once completed, 301 redirect /index.html to http://www.consumerbase.com/

            Ask yourself this: how often do you see someone refer an audience to http://www.consumerbase.com/index.html?

            There rarely, do - out of convenience and ease of use / standardization.

            So, for sharing and for ensuring that all inbound link weight is organized at only one canonical url I would suggest you consider using http://www.consumerbase.com/ at the root.

            All other pages can use use .html just fine.

            Hope this helps,
            Todd

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

              As everyone else has said, it doesn't really make a difference whether you have a file/extension as part of the URL. But if you do change your URLs and 301 redirect the old URLs to the new, you will lose some link equity (typically about 10%-15%); I'm not sure if this devaluation is reflected in OSE/Moz metrics.

              That said, I would recommend showing the directory without a file extension (using consumerbase.com/ instead of consumerbase.com/index.html). If you change platforms in the future to something that runs off PHP or some other language, displaying .html file types might not be an option but you can always display the directory. If you set yourself up now to display without the doc type, you don't have to worry about these changes in the future as much.

              1 Reply Last reply Reply Quote 1
              • 1 / 1
              • First post
                Last post
              • For a sitemap.html page, does the URL slug have to be /sitemap?
                ThompsonPaul
                ThompsonPaul
                0
                4
                205

              • Universal URL versus Specific URL addresses
                RaynChris
                RaynChris
                0
                3
                120

              • Redirect wordpress from /%post_id%/%postname%/ to /blog/%postname%/
                Taiger
                Taiger
                0
                3
                446

              • Thousands of /img/img/img urls generated by website - where are they coming from?
                McTaggart
                McTaggart
                0
                5
                129

              • Followup question to rand(om) question: Would two different versions (mobile/desktop) on the same URL work well from an SEO perspective and provide a better overall end-user experience?
                retailgeek
                retailgeek
                0
                2
                202

              • Is there any importance in including http:// in the url?
                ske11
                ske11
                0
                2
                167

              • Does having a file type on the end of a url affect rankings (example www.fourcolormagnets.com/business-cards.php VS www.fourcolormagnets.com/business-cards)????
                loopyal
                loopyal
                0
                4
                545

              • We are changing ?page= dynamic url's to /page/ static urls. Will this hurt the progress we have made with the pages using dynamic addresses?
                h3counsel
                h3counsel
                0
                3
                806

              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