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. Clean URL help!

    Clean URL help!

    Intermediate & Advanced SEO
    2 1 74
    • 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.
    • Whittie
      Whittie last edited by

      Hi all,

      In short, i'm looking to redirect examplepage.html to examplepage .I've got rid of the .html, sitewide this morning. However I want to redirect Google & people who have bookmarked the old url structure.

      Currently if you have the extension on or not, it will show in your browser.

      I'm wanting /examplepage.html to 301 redirect to /examplepage

      I've gone the normal way I'd do it by adding in .htaccess:

      Redirect 301 /examplepage.html http://www.example.com/examplepage

      I'm assuming it isn't redirecting as the example.html page is no longer... what is the way around this?

      Thanks for any help!

      In firefox the error of the page is:

      The page isn't redirecting properly

      Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

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

        Hi,

        I've found a solution, however thought i'd share.

        Within the .htaccess file, i've added

        # 301 permanent redirect all .html to non .html

        RewriteCond%{THE_REQUEST} \.html RewriteRule^(.*)\.html$ /$1 [R=301,L]

        Thanks

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        • Need help in de-indexing URL parameters in my website.
          Christy-Correll
          Christy-Correll
          0
          10
          86

        • URL Errors Help - 350K Page Not Founds in 22 days
          David-Kley
          David-Kley
          0
          6
          68

        • Cleaning up backlinks and changing URLs
          PatrickDelehanty
          PatrickDelehanty
          0
          2
          105

        • Changing my pages URL name - HELP NEEDED FAST
          HumConsulting
          HumConsulting
          0
          3
          112

        • Are clean mobile URL's necessary?
          recbrands
          recbrands
          0
          5
          155

        • Should /node/ URLs be 301 redirect to Clean URLs
          MargaritaS
          MargaritaS
          0
          3
          172

        • Does having shorter URLs help with rankings?
          fablau
          fablau
          0
          7
          115

        • Can anyone help me clean up my link profile?
          MattJanaway
          MattJanaway
          0
          12
          357

        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