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. On-Page / Site Optimization
    4. I have a duplicate URL from example.html to example without .html

    I have a duplicate URL from example.html to example without .html

    On-Page / Site Optimization
    7 4 234
    • 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.
    • aptustelecom
      aptustelecom last edited by

      I've recently changed my links from example.html to just example, however, moz shows that its been duplicated. Is this effects my ranking? if yes, how i can fix it please?

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

        did you add a redirect?

        aptustelecom 1 Reply Last reply Reply Quote 0
        • IM_Learner
          IM_Learner last edited by

          examlpe.html and example with the same content will be treated as duplicate pages. The best practice is to 301 redirect example.html to example.

          Regards

          aptustelecom 1 Reply Last reply Reply Quote 2
          • MickEdwards
            MickEdwards last edited by

            If you want to get rid of the html files you could try the following in your htaccess file.  The rule looks for anything (.*), until it gets to the .html then rewrites the first part dropping the .html

            RewriteEngine On
            RewriteRule ^(.*)+.html$ $1 [R=301,L]

            1 Reply Last reply Reply Quote 1
            • aptustelecom
              aptustelecom @Gijsbert last edited by

              no i didn't

              the only thing i did, is just changed the [example](example.html>example</a> to <a href=)

              1 Reply Last reply Reply Quote 0
              • aptustelecom
                aptustelecom @IM_Learner last edited by

                in this case i have to change my links to example.html and the redirect them?

                MickEdwards 1 Reply Last reply Reply Quote 0
                • MickEdwards
                  MickEdwards @aptustelecom last edited by

                  No Shailendra is saying you want a 301 rewrite mechanism so that anyone looking for example.html is redirected to example.

                  If you have been using example.html for some time what happens to the guys who have linked to these pages, or any links you have created - they need to be handled by a 301 rewrite.  The snippet of code below placed in your .htaccess should fix.  Take a backup copy first to restore if you hit any problems.

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post
                  • How to fix duplicate content for homepage and index.html
                    Nigel_Carr
                    Nigel_Carr
                    0
                    10
                    2.6k

                  • To avoid the duplicate content issue I have created new urls for that specific site I am posting to and redirecting that url to the original on my site. Is this the right way to do it?
                    0
                    1
                    24

                  • Duplicate URL's in Sitemap? Is that a problem?
                    MattRoney
                    MattRoney
                    0
                    5
                    7.6k

                  • Should I duplicate keywords in a URL?
                    HashtagHustler
                    HashtagHustler
                    0
                    3
                    395

                  • Backlink URL: With or Without WWW?
                    DeanAndrews
                    DeanAndrews
                    0
                    5
                    1.7k

                  • Is duplicate content harmful? Example from on my site
                    anthonydnelson
                    anthonydnelson
                    0
                    6
                    609

                  • URL Extensions (with or without??!!)
                    DougRoberts
                    DougRoberts
                    0
                    4
                    446

                  • Duplicate content issue with dynamically generated url
                    AdamThompson
                    AdamThompson
                    0
                    2
                    920

                  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