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. URL change extension to .php from .htm

    URL change extension to .php from .htm

    Technical SEO Issues
    7 4 1.1k
    • 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.
    • Zilla
      Zilla last edited by

      I am looking at changing the platform of an established (7 years) site to PHP based.

      Currently most of the URLs have the file extension .htm (“x.com/filename.htm” ) with some URLs being indexed as directory URLs (“x.com/directory/” feeding from “x.com/directory/index.htm”)

      So I am considering two options

      • A. Changing just file extensions & create 301 redirects, (x.com/samefilename.htm” -> “x.com/samefilename.php”) and for directory URLs (“x.com/samedirectory/index.htm” -> “x.com/samedirectory/index.php”)

      • B. At the same time taking the opportunity to change the file hierarchy to be more user / seo friendly by changing all URLs to directory URLs – this would be a more extensive redirect than just changing the file extension.

      I am interested in what risks / impact would there be of this and the questions I would like some help with are:

      1. Are there any short term risks to rankings with a filename extension change like this?
      2. Should an exercise like this be staggered or is it ok to carry out the site-wide change in one go?
      3. Does a more extensive filename and structure redirect like in option B above introduce more risk than just changing to the .php extension or would the search engines consider this the same?
      4. For the directory URLs do I even need a 301 redirect after changing index.htm to index.php or will the Search engines not even recognise a change (indexed URL will remain the same)?

      Your opinions on the above questions and any other advice / experience you can share would be much appreciated.

      Thanks,

      Adrian.

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

        Hi Adrian,

        We had a similar problem not as long ago (changing the website extension from .html to .aspx). What we have experienced is, that the website traffic and rankings went down for aprox. 1-2 week, then it came back up without any problem.

        I would suggest to go for all change at one time instead of going with partial rewrite, then again some partial rewrite. (Before you put it alive, test all your links! check for broken links and make sure the redirects are right)

        After the website deploy you should resubmit a new sitemap in GWT.

        The 301 should be done, so after resubmitting your sitemap in GWT you will not face any duplicate content issue.

        The negative part: you will lose some of the link juice thanks to the 301. If you have the possibility contact the webmasters who are already linking to your website and ask them kindly to resolve the URL issue (at least for the highest authority links you have gained in time).

        I hope that helped,

        Istvan

        AlanMosley 1 Reply Last reply Reply Quote 2
        • AlanMosley
          AlanMosley @Keszi last edited by

          Istvan is give a good answer, i would add one thing, make sure all your internal links point to the new urls, dont rely on the 301, as as Istvan stated, they will leak a little link juice.

          Keszi 1 Reply Last reply Reply Quote 0
          • Keszi
            Keszi @AlanMosley last edited by

            Thank you Alan 🙂

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

              Thanks Istvan and Alan for the responses.

              On the subject of incoming links - I can change internal links and inbound links from other sites I control however the vast majority of links will still point to the old page location so my follow up question is just how serious is this link juice loss due to the 301 and is this a serious enough reason to not do the change and keep the locations as they are now?

              Keszi 1 Reply Last reply Reply Quote 0
              • Keszi
                Keszi @Zilla last edited by

                Hi Adrian,

                with a 301 you lose aprox 15% of link juice (don't remember who gave that exact number, but i still have that in my mind 🙂 )

                So basically if you can change the links that you have control of, it will help. with other links... try to focus more on gaining new link partnerships. the 301 will lose some of the link juice, but new partners will push the link diversity and will help you more.

                I hope it helped and good luck ;-),

                Istvan

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

                  Istvan makes a number of good points and Matt Cutts has certainly alluded to a loss of some link juice when using 301's, although Google's official line is that there is no loss. I'd not seen the 15% number before, which is certainly high enough to be discernible above the 'noise'.

                  I support his contention that, in terms of getting existing inbound links repointed, it's best to focus on the few high value links and then look for new links driven by quality content. This has the double benefit of cleansing some of the now-devalued link types, whilst appealing to Google's measurable preference for 'fresh' links.

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post
                  • What is the best way to change the URL along with the brand name change & having a minimal affect on the traffic
                    sharp_instincts
                    sharp_instincts
                    1
                    3
                    50

                  • Category URL Pagination where URLs don't change between pages
                    whiteonlySEO
                    whiteonlySEO
                    0
                    7
                    656

                  • Should I change or redirect this URL?
                    KempRugeLawGroup
                    KempRugeLawGroup
                    0
                    6
                    115

                  • How to change URL for this website
                    Kizinko
                    Kizinko
                    0
                    4
                    93

                  • We have designed a new site and are in dilemna whether or not to change the site's URL structure or maybe few odd looking urls. How exactly do we go about the URL thing in toto? thanks in advance, any suggestion(s) would be dearly welcome
                    ShaunPhilips
                    ShaunPhilips
                    1
                    7
                    109

                  • Changed URL of all web pages to a new updated one - Keywords still pick the old URL
                    danatanseo
                    danatanseo
                    0
                    2
                    331

                  • Changing all urls
                    NCMM
                    NCMM
                    0
                    4
                    216

                  • Php to html - change in extension
                    seoug_2005
                    seoug_2005
                    1
                    9
                    1.5k

                  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