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. Does having active urls with and without trailing .html impact SEO?

    Does having active urls with and without trailing .html impact SEO?

    Intermediate & Advanced SEO
    2 2 269
    • 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.
    • Karri_Parks
      Karri_Parks last edited by

      A recent update resulted in duplication of urls on our site due to inconsistent url structure:

      Example:

      • /category2.html and /category2 both active on the site as the same page

      Will this hurt and should we create redirects using only one version of the url?

      • /category2.html redirect to /category2
      1 Reply Last reply Reply Quote 0
      • effectdigital
        effectdigital last edited by

        It may do or it may not. It may or may not impact upon duplicate content, it always impacts upon crawl allowance

        I'm going to use trailing slash URLs (a more common issue and consolidation feature) in my example, but it's equally applicable for stripping .HTML or non-resource (PDF, JPG, JS etc) file extensions

        Quite a lot of sites, even if they refuse to clean this up, will at least 'canonical' one URL to the other. That let's Google know that one version of the page is canonical and should receive relevant SEO traffic - it avoids content duplication related penalties or algorithmic devaluations. There are two things it doesn't help Google out with

        • It doesn't tell Google not to crawl both URLs (you might say the canonical tag does that, but keep in mind Google has to have already loaded both URLs to read both canonical tags so... no)
        • It doesn't consolidate SEO authority to the same degree that 301 redirects do. Say one page has some nice backlinks and the other one does too, that 'ranking benefit' won't all be consolidated onto one page. The canonical tag will make sure only one page ranks, but it won;t gain the 'optimal' benefit of the backlinks for both web-pages (301s do a better job of that, generally)

        So as you can see, even if you avoid content duplication issues, there are other problems that could potentially arise. This being the case, it's best to consolidate your URL architecture at and and all levels

        My preference is this logic in the htaccess (via 301s):

        • Always force a trailing slash for pages (as they may have sub-pages, and can also be directories)
        • EXCEPT if the active URL is a file (e.g: somesite.com/some-folder/some-image.jpg) - in which case, do not force a trailing slash (files are never folders / directories)
        • But if the file extension is page-based rather than resource based (e.g: .html) then strip the extension and finish with a trailing slash

        SEO is about avoiding risk. If there is conflicting information on a subject, pick the tried and tested (safe) method

        Note that if you are on an MS / IIS server (rather than Linux / Apache) you may have to modify web.config instead of '.htaccess'

        1 Reply Last reply Reply Quote 2
        • 1 / 1
        • First post
          Last post
        • Reasonable to Ask URL of Link from SEO Providing New Links before Link Activation?
          seanginnaw
          seanginnaw
          0
          2
          38

        • Mass URL changes and redirecting those old URLS to the new. What is SEO Risk and best practices?
          Charles-O
          Charles-O
          0
          6
          465

        • Migrating From Parameter-Driven URL's to 'SEO Friendly URL's (Slugs)
          PatrickDelehanty
          PatrickDelehanty
          0
          2
          292

        • 6 .htaccess Rewrites: Remove index.html, Remove .html, Force non-www, Force Trailing Slash
          roynguyen
          roynguyen
          0
          4
          9.7k

        • Removing .html from URLs - impact of rankings?
          Gyorgy.B
          Gyorgy.B
          0
          5
          154

        • How much does dirty html/css etc impact SEO?
          LesleyPaone
          LesleyPaone
          0
          5
          4.2k

        • Does having a trailing slash make a url different than the same url without the trailing slash?
          webestate
          webestate
          0
          4
          2.2k

        • SEO Overly-Dynamic URL Website with thousands of URLs
          CleverPhD
          CleverPhD
          0
          4
          718

        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