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. Correct Redirect method for switching pages from .html to /pretty urls/

    Correct Redirect method for switching pages from .html to /pretty urls/

    Technical SEO Issues
    3 2 529
    • 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.
    • tgr0ss
      tgr0ss last edited by

      I have a customer that has all his site files as .html extensions and i'm going to rebuild this site into a wordpress site for easier management,

      regarding the new permalink structure, should i just do a 301 redirect on this?

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

        Yes, most definitely.  I just did the exact thing.  I moved a site that had originally been on asp classic, then moved to php, now to word press.  The .asp pages were being processed as php by the server, and there were hundreds of pages.  Within two weeks of moving site to WordPress and doing the redirects I saw immediate ranking results.  Here are just a few redirects, the way I was making them:

        redirect 301 /about-fort-worth-personal-injury-lawyer.php /about-for . . .
        redirect 301 /arlington-personal-injury-lawyer-locations.php /arlingto . . .
        redirect 301 /injury-law-news.php /injury-law-news/
        redirect 301 /asbestos-claim.asp /asbestos-claim/
        redirect 301 /auto-accident.asp /auto-accident/
        redirect 301 /burns.asp /burns/
        .
        .
        .

        Here are the steps I took to save time.

        • I created an xml sitemap at one of those free online sitemap creators and downloaded as CSV.
        • Used the list in php script I wrote to scrape the text from each page on the old site and insert into the WordPress database using the file name as title (replacing - with space) and droping .asp or .php
        • I recreated the redirects in Exel by combining a column of the old filenames and the newly created ones. Cut and pasted.
        • The new url's were in Google in about 10 days.
        1 Reply Last reply Reply Quote 2
        • tgr0ss
          tgr0ss last edited by

          thaanks Chris!

          1 Reply Last reply Reply Quote 1
          • 1 / 1
          • First post
            Last post
          • Home Page Being Indexed / Referral URLs /
            Andrew-SEO
            Andrew-SEO
            0
            2
            44

          • Redirect /label/ to /tags/
            Taiger
            Taiger
            0
            3
            143

          • Hi! I'm wondering whether for keyword SEO - a url should be www.salshoes.com/shoes/mens/day-wear (so with a few parent categories) or www.salshoes.com/shoes-mens-day-wear is ok for on page optimization?
            _nitman
            _nitman
            0
            5
            165

          • 301 redirects - one overall redirect or an individual one for each page url
            Kurt_Steinbrueck
            Kurt_Steinbrueck
            1
            4
            160

          • How can I change the page title "two" (artigos/page/2.html) in each category ?
            sprynewmedia
            sprynewmedia
            0
            3
            118

          • 301 Redirect / cross-domain canonical to a URL w/ Ampersand
            Gatelist
            Gatelist
            0
            3
            756

          • Is a 302 redirect the correct redirect from a root URL to a detail page?
            KeriMorgret
            KeriMorgret
            0
            7
            1.8k

          • On Page 301 redirect for html pages
            randfish
            randfish
            0
            7
            1.6k

          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