undefined
Skip to content
Moz logo Menu open Menu close
  • Products
    • Moz Pro
    • Moz Pro Home
    • Moz Local
    • Moz Local Home
    • STAT
    • Moz API
    • Moz API Home
    • Compare SEO Products
    • Moz Data
  • Free SEO Tools
    • Domain Analysis
    • Keyword Explorer
    • Link Explorer
    • Competitive Research
    • MozBar
    • More Free SEO Tools
  • Learn SEO
    • Beginner's Guide to SEO
    • SEO Learning Center
    • Moz Academy
    • SEO Q&A
    • Webinars, Whitepapers, & Guides
  • Blog
  • Why Moz
    • Agency Solutions
    • Enterprise Solutions
    • Small Business Solutions
    • Case Studies
    • The Moz Story
    • New Releases
  • Log in
  • Log out
  • Products
    • Moz Pro

      Your all-in-one suite of SEO essentials.

    • Moz Local

      Raise your local SEO visibility with complete local SEO management.

    • STAT

      SERP tracking and analytics for enterprise SEO experts.

    • Moz API

      Power your SEO with our index of over 44 trillion links.

    • Compare SEO Products

      See which Moz SEO solution best meets your business needs.

    • Moz Data

      Power your SEO strategy & AI models with custom data solutions.

    NEW Keyword Suggestions by Topic
    Moz Pro

    NEW Keyword Suggestions by Topic

    Learn more
  • Free SEO Tools
    • Domain Analysis

      Get top competitive SEO metrics like DA, top pages and more.

    • Keyword Explorer

      Find traffic-driving keywords with our 1.25 billion+ keyword index.

    • Link Explorer

      Explore over 40 trillion links for powerful backlink data.

    • Competitive Research

      Uncover valuable insights on your organic search competitors.

    • MozBar

      See top SEO metrics for free as you browse the web.

    • More Free SEO Tools

      Explore all the free SEO tools Moz has to offer.

    NEW Keyword Suggestions by Topic
    Moz Pro

    NEW Keyword Suggestions by Topic

    Learn more
  • Learn SEO
    • Beginner's Guide to SEO

      The #1 most popular introduction to SEO, trusted by millions.

    • SEO Learning Center

      Broaden your knowledge with SEO resources for all skill levels.

    • On-Demand Webinars

      Learn modern SEO best practices from industry experts.

    • How-To Guides

      Step-by-step guides to search success from the authority on SEO.

    • Moz Academy

      Upskill and get certified with on-demand courses & certifications.

    • MozCon

      Save on Early Bird tickets and join us in London or New York City

    Unlock flexible pricing & new endpoints
    Moz API

    Unlock flexible pricing & new endpoints

    Find your plan
  • Blog
  • Why Moz
    • Small Business Solutions

      Uncover insights to make smarter marketing decisions in less time.

    • Agency Solutions

      Earn & keep valuable clients with unparalleled data & insights.

    • Enterprise Solutions

      Gain a competitive edge in the ever-changing world of search.

    • The Moz Story

      Moz was the first & remains the most trusted SEO company.

    • Case Studies

      Explore how Moz drives ROI with a proven track record of success.

    • New Releases

      Get the scoop on the latest and greatest from Moz.

    Surface actionable competitive intel
    New Feature

    Surface actionable competitive intel

    Learn More
  • Log in
    • Moz Pro
    • Moz Local
    • Moz Local Dashboard
    • Moz API
    • Moz API Dashboard
    • Moz Academy
  • Avatar
    • Moz Home
    • Notifications
    • Account & Billing
    • Manage Users
    • Community Profile
    • My Q&A
    • My Videos
    • Log Out

The Moz Q&A Forum

  • Forum
  • Questions
  • Users
  • Ask the Community

Welcome to the Q&A Forum

Browse the forum for helpful insights and fresh discussions about all things SEO.

  1. Home
  2. SEO Tactics
  3. URL with .html or not

Moz Q&A is closed.

After more than 13 years, and tens of thousands of questions, Moz Q&A closed on 12th December 2024. Whilst we’re not completely removing the content - many posts will still be possible to view - we have locked both new posts and new replies. More details here.

URL with .html or not

SEO Tactics
url with .html
7
9
1.6k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as question
Log in to reply
This topic has been deleted. Only users with question management privileges can see it.
  • Sert_Sibiu
    Sert_Sibiu Subscriber last edited by Oct 31, 2023, 7:55 AM

    Hello,
    I have an online shop for printer consumables
    Categories url's are like that https://www.sertit.ro/consumabile-imprimante.html
    And products https://www.sertit.ro/cartuse-toner/xerox/cartus-toner-xerox-phaser-3020-workcentre-3025-1500-pagini.html
    Is better to have .html or not?

    Mprus 1 Reply Last reply Nov 1, 2023, 11:07 AM Reply Quote 0
    • Smartliving1111
      Smartliving1111 last edited by Nov 6, 2023, 5:21 PM

      The decision to include or exclude ".html" extensions in your URLs is generally a matter of personal preference and can depend on your website's technology stack, SEO considerations, and user experience. Both approaches have their advantages, and it's essential to consider how they align with your specific needs. Here are some factors to consider

      1 Reply Last reply Reply Quote 0
      • skchad13j
        skchad13j last edited by Nov 4, 2023, 6:58 AM

        @Sert_Sibiu said in URL with .html or not:

        Hello,
        I have an online shop for printer consumables
        Categories url's are like that https://www.sertit.ro/consumabile-imprimante.html
        And products https://www.sertit.ro/cartuse-toner/xerox/cartus-toner-xerox-phaser-3020-workcentre-3025-1500-pagini.html
        Is better to have .html or not?

        Hello,

        It's generally better not to have ".html" in your URLs for a cleaner and more modern appearance. Shorter, more user-friendly URLs are easier to remember and share. However, the choice between having ".html" or not won't significantly impact your online shop's functionality or SEO if your website is properly configured. Focus on creating a clear and organized structure for your URLs and providing high-quality content for better results.
        .
        .
        .
        (Study abroad) (Masters In Computer Science In Canada ) (Canada PR)(PMP Exam Prep)

        1 Reply Last reply Reply Quote 0
        • BlueprintMarketing
          BlueprintMarketing @BlueprintMarketing last edited by Nov 1, 2023, 9:25 PM

          @BlueprintMarketing

          It’s essential to clarify that unless your URLs are exceedingly lengthy, Google won’t discern any difference in how it processes the URL structure. Nonetheless, it’s vital to acknowledge that most individuals don’t retain the ‘.html’ at the end of URLs. So, if they remember the link, that particular segment may elude them. While this confers a minor advantage, it merits consideration. The significance of this aspect is contingent on your situation; if you possess very long URLs, addressing this could be worthwhile, yet it’s imperative to adhere to the guidelines delineated above should you opt for alterations.
          Furthermore, remember that it’s feasible to enforce a trailing slash / or opt for no trailing slash. It’s your choice. The paramount concern is ensuring 301 redirects and uniformity in the URLs and reflected accurately across the canonicals, XML sitemap, and the browser.

          1 Reply Last reply Reply Quote 0
          • BlueprintMarketing
            BlueprintMarketing last edited by Nov 1, 2023, 9:10 PM

            Google's preference doesn't lean towards having the ".html" extension in your URLs. While removing it may tidy up the links, the SEO impact is negligible. The removal process is fairly straightforward, depending on your CMS and server setup. Employ regex for creating redirects if you proceed, but ensure to implement 301 redirects to avoid harming your site.

            For instance, https://example.com/example-subfolder.html must 301 redirect to https://example.com/example-subfolder/

            Decide on enforcing a trailing slash like “example-subfolder/” or removing it "/example-subfolder", aligning this with your rel canonicals and XML sitemap.

            General Considerations:

            • Maintain URL structure consistency to avert duplicate content issues.
            • Always execute 301 redirects for updated URL structures.
            • Align your rel=canonical tags and XML sitemap with the new URL setup.

            Server Configuration:

            Apache:

            # To force a trailing slash:
            RewriteEngine On
            RewriteCond %{REQUEST_FILENAME} !-f
            RewriteRule ^(.*[^/])$ /$1/ [L,R=301]
            
            # To remove .html extension:
            RewriteEngine On
            RewriteCond %{REQUEST_FILENAME} !-f
            RewriteRule ^([^\.]+)$ $1.html [NC,L]
            

            Nginx:

            # To force a trailing slash:
            rewrite ^([^.]*[^/])$ $1/ permanent;
            
            # To remove .html extension:
            location / {
                try_files $uri $uri.html $uri/ =404;
            }
            
            • For Apache, input in .htaccess.
            • For Nginx, input in nginx.conf.

            WordPress (via Redirection Plugin):

            1. Install and activate the Redirection Plugin.
            2. Set up redirects:
              • To force a trailing slash:
                • Source URL: /^(.*[^/])$
                • Target URL: /$1/
                • Regex: Enabled
              • To remove .html extension:
                • Source URL: /^(.*)\.html$
                • Target URL: /$1
                • Regex: Enabled

            Canonical and Sitemap Updates:

            Before:

            <link rel="canonical" href="https://example.com/example-subfolder.html" />
            
            <url>
              <loc>https://example.com/example-subfolder.html</loc>
              <lastmod>2023-10-01</lastmod>
              <changefreq>monthly</changefreq>
              <priority>0.8</priority>
            </url>
            

            After (with trailing slash enforced):

            <link rel="canonical" href="https://example.com/example-subfolder/" />
            
            <url>
              <loc>https://example.com/example-subfolder/</loc>
              <lastmod>2023-10-01</lastmod>
              <changefreq>monthly</changefreq>
              <priority>0.8</priority>
            </url>
            
            BlueprintMarketing 1 Reply Last reply Nov 1, 2023, 9:25 PM Reply Quote 0
            • Sert_Sibiu
              Sert_Sibiu Subscriber @educationedge012 last edited by Nov 1, 2023, 4:59 PM

              @educationedge012
              Thank you for your reply.
              My first consideration is how Google "see" that.
              Because the lenght of url's and copy/paste facility. Nobody will remind an URL, in my opinion.

              1 Reply Last reply Reply Quote 0
              • inovies-new
                inovies-new Subscriber last edited by Nov 1, 2023, 11:58 AM

                @Sert_Sibiu said in URL with .html or not:

                Hello,
                I have an online shop for printer consumables
                Categories url's are like that https://www.sertit.ro/consumabile-imprimante.html
                And products https://www.sertit.ro/cartuse-toner/xerox/cartus-toner-xerox-phaser-3020-workcentre-3025-1500-pagini.html
                Is better to have .html or not?

                The decision to include or exclude ".html" extensions in your URLs is generally a matter of personal preference and can depend on your website's technology stack, SEO considerations, and user experience. Both approaches have their advantages, and it's essential to consider how they align with your specific needs. Here are some factors to consider:

                Advantages of Including ".html" Extensions:

                File Type Recognition: Including ".html" in URLs makes it explicit that you're dealing with HTML web pages, which can be beneficial for search engines and browsers.

                Historical URLs: If your website has used ".html" extensions in URLs historically, removing them could lead to broken links or issues with existing bookmarks and references.

                Static Website: If your website is primarily composed of static HTML files, using ".html" extensions might better represent your content.

                Advantages of Excluding ".html" Extensions:

                Cleaner URLs: Removing ".html" can make your URLs appear cleaner and more user-friendly, which can enhance the user experience and the aesthetics of your website.

                SEO: Search engines generally don't require ".html" to understand the content. Including it doesn't significantly impact SEO rankings, but cleaner URLs can be easier for search engines to understand and index.

                Flexibility: Excluding ".html" allows you to switch to different technologies or content types without needing to change your URLs. It provides more flexibility for future site developments.

                Ultimately, the decision is up to you. If your website already uses ".html" extensions and changing it would be a significant effort, it might be best to leave it as is. However, if you have the flexibility to make changes, and you prefer cleaner, extension-free URLs, you can consider removing ".html" and implementing proper URL redirects to maintain SEO and user experience. Additionally, ensure that your URL structure is well-optimized for SEO, including relevant keywords, and follows best practices for canonicalization.

                Thanks
                inovies

                1 Reply Last reply Reply Quote 0
                • educationedge012
                  educationedge012 last edited by Nov 1, 2023, 11:42 AM

                  Hello,

                  Whether to include ".html" in your category and product URLs depends on your website's structure and your personal preferences. Both approaches have their advantages and potential considerations.

                  Having ".html" in your URLs:

                  Explicitness: It clearly indicates that the page is in HTML format.
                  Static URLs: Some users and search engines prefer static URLs, as they can be more descriptive and memorable.
                  Not having ".html" in your URLs:

                  Cleaner URLs: Removing ".html" can make your URLs look cleaner and more user-friendly.
                  Easier to change technology: If you ever decide to switch to a different technology or content management system that doesn't use ".html" extensions, it can be a smoother transition.
                  Ultimately, the decision should be based on your website's structure, your SEO strategy, and what you believe will provide the best user experience. Both options can work effectively if implemented correctly.
                  (PMP Exam Prep) (PMP Exam ) ( Business Intelligence Analyst Salary) (Study abroad) (Canada PR)

                  Sert_Sibiu 1 Reply Last reply Nov 1, 2023, 4:59 PM Reply Quote 0
                  • Mprus
                    Mprus @Sert_Sibiu last edited by Nov 1, 2023, 11:07 AM

                    @Sert_Sibiu Hi, I try not to use ".html" in category and product urls.

                    1 Reply Last reply Reply Quote 0
                    • 1 / 1
                    1 out of 9
                    • First post
                      1/9
                      Last post

                    Got a burning SEO question?

                    Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.


                    Start my free trial


                    Browse Questions

                    Explore more categories

                    • Moz Tools

                      Chat with the community about the Moz tools.

                    • SEO Tactics

                      Discuss the SEO process with fellow marketers

                    • Community

                      Discuss industry events, jobs, and news!

                    • Digital Marketing

                      Chat about tactics outside of SEO

                    • Research & Trends

                      Dive into research and trends in the search industry.

                    • Support

                      Connect on product support and feature requests.

                    • See all categories

                    Related Questions

                    • worldviajar.com

                      How can I check my website is not in spam?

                      keyword ranking keywords

                      I have a blogging website where I post about famous food, home remedies, and more. When I started my website's keywords were ranking on Google But Now a single keyword is not in the ranking list. That's why I have concerns about how I can fix it.

                      SEO Tactics | Oct 29, 2024, 10:33 AM | worldviajar.com
                      0
                    • Cricket93

                      Query on Ranking Expectations and Search Intent Alignment

                      keyword ranking

                      I've recently implemented the page optimization recommendations provided by Moz Pro to help our site rank for specific keywords on certain pages. It’s been about a week since we made these changes, and we’re happy to report that our optimization scores for the targeted keywords and URLs are looking strong. I did create these pages with our intended keywords in mind. However, two questions about the page optimization tool: Ranking Expectations: Since our optimization scores are good, when might we start seeing improvements in our keyword rankings? We know that SEO results can take time, but we would appreciate any insights on a typical timeline based on your experiences. Optimization and Search Intent: While the tool’s optimization suggestions have been helpful, we’re curious about how they factor in search intent. How does Moz Pro’s advice take into account variations in search intent, especially if users search using slight variations of the keywords we’re targeting?

                      SEO Tactics | Oct 12, 2024, 9:28 PM | Cricket93
                      0
                    • Roycd

                      Google not listing website correctly

                      google listing seo website submission

                      have a domain that was unused for a while and displayed the "parked by Gandi" domain message. Recently, I decided to set up a fully working website on that domain, but I'm struggling to get it to rank correctly on Google. Google isn't updating the http://domain.com to the correct https://www.domain.com, and I have tried everything. The http://domain.com redirects to https://www.domain.com if you click on it. I managed to get the correct version, https://www.domain.com, to show up, but after a couple of days, it reverted to the old version and has stayed that way. This has been going on for a few weeks now. Additionally, I had an old version of the site using .com, and I forwarded that to the .co.uk, but the old .com will not be removed from Google. it was just one page without much content. At the moment, Google's search results look very messy and out of date. I have submitted the URL in the Google Search Console using the URL inspection tool and requested indexing and reindexing. I have also submitted sitemaps, but nothing is really working. Any ideas?

                      SEO Tactics | Aug 25, 2024, 8:44 AM | Roycd
                      0
                    • PunchyMcSkeletor

                      Only my homepage ranks for my keywords, should I delete my other pages?

                      keywords ranking homepage seo

                      I am an independent artist and all of my business inquiries come through my website (www.ChrisCarlsonArt.com). Over the last 6 months I have been trying to get pages other than my homepage to rank for my keywords, but I haven't made any progress. I worry that I am cannibalizing my keywords since my pages all have similar information. Should I just delete my other pages and focus on ranking my homepage? Also, if I delete my other pages will that have a negative impact on my rankings?

                      SEO Tactics | May 26, 2024, 10:03 AM | PunchyMcSkeletor
                      0
                    • Naju231

                      Ranking going south

                      seo seo expert

                      Hi - I have a site Simply Stairlifts and I don't understand it but I've followed all the SEO processes of cleaning the site and building links, but ranking just keeps falling - any advise would be very gratefully received 👍 .

                      SEO Tactics | Jun 13, 2024, 12:23 PM | Naju231
                      0
                    • BeKonstructive

                      Multiple URLs from One Domain on Page 1

                      multiple urls

                      Is it possible (and if it is possible, how difficult is it) to get multiple URLs from the same domain name to be indexed on the first page of Google for the same keyword or phrase? Assuming each URL has significantly different content of course... Context: A large real estate brand has 6 franchise offices in the same city. Each office has its own listing/landing page on the parent brand website. Each franchise owner wants their page on the website to rank for the term 'Christchurch real estate'. The homepage of the parent brand website currently ranks on the first page of Google for this search term, but none of the franchisee pages do. So my question is: with the right unique content on each franchisee page, supported by quality backlinks to each of the different offices, is it possible to get multiple franchisees listed on the first page of Google given that ultimately the 6 URLs are all attached to the same domain name? (And, if so, do you have any hot tips you can share to assist me on this uphill battle?)

                      SEO Tactics | Aug 1, 2022, 3:26 PM | BeKonstructive
                      0
                    • aplusnetsolutions

                      How can I make a list of all URLs indexed by Google?

                      redirect indexed urls google url index google broken links

                      I have a large site with over 6000 pages indexed but only 600 actual pages and need to clean up with 301 redirects. Haven't had this need since Google stopped displaying the url's in the results.

                      SEO Tactics | Dec 11, 2023, 4:12 PM | aplusnetsolutions
                      0
                    • WP33

                      Collections or blog posts for Shopify ecommerce seo?

                      shopify ecommerce seo

                      Hi, hope you guys can help as I am going down a rabbit hole with this one! We have a solid-ranking sports nutrition site and are building a new SEO keyword strategy on our Shopify built store. We are using collections (categories) for much of the key product-based seo. This is because, as we understand it, Google prioritises collection/category pages over product pages. Should we then build additional collection pages to rank for secondary product search terms that could fit a collection page structure (eg 'vegan sports nutrition'), or should we use blog posts to do this? We have a quality blog with good unique content and reasonable domain authority so both options are open to us. But while the collection/category option may be best for SEO, too many collections/categories could upset our UX. We have a very small product range (10 products) so want to keep navigation fast and easy. Our 7 lead keyword collection pages do this already. More run the risk of upsetting ease/speed of site navigation. On the other hand, conversion rate from collection pages is historically much better than blog pages. We have made major technical upgrades to the blog to improve this but these are yet to be tested in anger. So at the heart of it all - do you guys recommend favouring blog posts or collection/category pages for secondary high sales intent keywords? All help gratefully received - thanks!

                      SEO Tactics | Aug 10, 2024, 6:44 AM | WP33
                      2

                    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
                    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 - 2025 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
                    • Accessibility
                    • Terms of Use
                    • Privacy

                    Looks like your connection to Moz was lost, please wait while we try to reconnect.