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. Technical SEO Issues
    4. Static site to wordpress - avoiding 301 redirects

    Static site to wordpress - avoiding 301 redirects

    Technical SEO Issues
    9 3 423
    • 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.
    • Jon-C
      Jon-C last edited by

      Moving our static website to wordpress, pages currently end in the .htm extension and for reasons of me having to do all the moving myself and wanting to preserve link equity is there any way I can run the pages with a .htm extension in Wordpress?

      Tried using a plug-in by Daddy Design but it seems a bit hit and miss at times.

      I basically need to keep the url's the same as I will not be able to get the vast majority of my links altered to the new pages, plus I am doing this by myself!

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

        Go to your WP dashboard > Settings > Permalinks > Custom Structure > Enter /%postname%.htm

        Then for each post/page you make, just edit the URL to match your previous site's structure.

        Jon-C 2 Replies Last reply Reply Quote 0
        • Jon-C
          Jon-C @OlegKorneitchouk last edited by

          Is it as easy that?!

          I shall give it a go and see how I get on! Thank you!

          1 Reply Last reply Reply Quote 0
          • Jon-C
            Jon-C @OlegKorneitchouk last edited by

            It's not working for me! Whenever I enter .htm it turns the dot into a hypen?

            OlegKorneitchouk Jon-C 2 Replies Last reply Reply Quote 0
            • OlegKorneitchouk
              OlegKorneitchouk @Jon-C last edited by

              Hmmm, seems to be working for me. I had /%category%/%postname%/ as my permalink and changed it to /%category%/%postname%.htm

              End result was all the posts/pages had .htm added to the url.

              Latest version of WP? I'll test this out on another WP site I have and see if I get the same results.

              Update: Yep, worked on my other site too. Not sure why you're experiencing problems =/

              1 Reply Last reply Reply Quote 0
              • Jon-C
                Jon-C @Jon-C last edited by

                Still cannot do it! Using latest wordpress, the only thing I can think of is I am using Pages?

                I'll try again tomorrow

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

                  Unfortunately the method method Oleg raised only works for Posts and not pages...

                  So you have a choice either write a PHP script and load it as a plugin or make some amendments to your .htaccess

                  Jon-C 1 Reply Last reply Reply Quote 1
                  • Jon-C
                    Jon-C @ChrisDyson last edited by

                    Thanks Chris,

                    Any ideas how I would go about the HT access file method?

                    OlegKorneitchouk 1 Reply Last reply Reply Quote 0
                    • OlegKorneitchouk
                      OlegKorneitchouk @Jon-C last edited by

                      Yep, my bad. Pages seem to function under their own permalink rules (not sure why, I think most people would prefer the same permalink structure for posts and pages.)

                      Did some quick research and looks like many others have the same issue and the only solution is to try out the available plugins.

                      You can change the .htaccess code to append .htm to the url but WP won't be able to locate the proper post unless you change the settings in the db as well (which is what I assume the plugins do).

                      1 Reply Last reply Reply Quote 0
                      • 1 / 1
                      • First post
                        Last post
                      • Help Setting Up 301 Redirects from Coldfusion Site to Wordpress Site.
                        MarketHubb
                        MarketHubb
                        1
                        3
                        143

                      • Redirecting old html site to new wordpress site
                        briandee
                        briandee
                        0
                        3
                        326

                      • Redirect a 301 Redirect
                        RedCaffeine
                        RedCaffeine
                        0
                        5
                        98

                      • 301 redirect on wordpress.com
                        Tunji
                        Tunji
                        0
                        3
                        2.8k

                      • Redirect from old wordpress site to new php site? Best approach
                        Vahe.Arabian
                        Vahe.Arabian
                        0
                        7
                        844

                      • Will rankings for my micro site rank better if I 301 redirect it to my main site?
                        RobertFisher
                        RobertFisher
                        0
                        7
                        1.4k

                      • Does 301 redirecting a site multiple times keep the value of the original site?
                        debi_zyx
                        debi_zyx
                        0
                        3
                        692

                      • Wordpress 301 redirects
                        KeriMorgret
                        KeriMorgret
                        0
                        5
                        916

                      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