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. Web Design
    4. Switching over to wordpress

    Switching over to wordpress

    Web Design
    5 5 129
    • 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.
    • mike_sif
      mike_sif last edited by

      Hello fellow Mozers!

      I've searched to see if I find an answer, cant seem to find it.

      Is there a way to do a blanket 301 redirect?  I am moving a site that has all pages end with .html extension over to wordpress.

      I was wondering if I could set up a rule that says redirect all pages with .html extension to a version of the page with no extension.  I will keep the same url with the exception of the .html extension.

      http://www.website.com/page.html to http://www.website.com/page/
      http://www.website.com/page-title.html to http://www.website.com/page-title/

      Instead of doing a 301 redirect for about 250 pages, I was wondering if I can just do one rule that will handle all the redirects considering I am keeping the same page url without the .html extension.

      Thanks 🙂

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

        I thought I remembered a very similar question to this one that was posted recently so I did a little digging and found it.

        See if this helps: https://moz.com/community/q/converting-to-wp-should-i-add-html-or-301

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

          Try putting the following lines to your .htaccess file:

          RewriteEngine On
          RewriteCond %{REQUEST_FILENAME} !-f
          RewriteCond %{REQUEST_FILENAME} !-d
          RewriteRule ^(.*).html$ /$1 [L,R=301]

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

            With 250 URL, you can do this manually in a couple hours. Use a free crawler and download to excel. From there, create the new URLs you want to 301 to and throw them into the .htaccess.

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

              Mike

              I think this is what you are looking for: https://moz.com/community/q/html-extension - also a recent question from the Q&A. I think Dana's link explains how to maintain the .html in WordPress and that debate was more about if 301's pass PR etc.

              Whereas if you've decided you already want to redirect, that tells you how.

              1 Reply Last reply Reply Quote 1
              • 1 / 1
              • First post
                Last post
              • Sitemap Wordpress
                BlueprintMarketing
                BlueprintMarketing
                0
                3
                228

              • Wordpress - redirecting tags
                GPainter
                GPainter
                0
                3
                230

              • Wordpress or Joomla?
                DWallace
                DWallace
                0
                8
                252

              • Migrating to Wordpress
                Jinx14678
                Jinx14678
                0
                4
                196

              • Switching from HTML Static to WordPress Platform - SEO
                jimmy0225
                jimmy0225
                0
                5
                225

              • .htaccess on wordpress multisites
                Matt-Williamson
                Matt-Williamson
                0
                11
                1.2k

              • Drupal and Wordpress on same TLD
                RobertFisher
                RobertFisher
                0
                2
                521

              • Yahoo to Wordpress Permalinks
                EricaMcGillivray
                EricaMcGillivray
                0
                2
                583

              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