URL change extension to .php from .htm
-
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:
- Are there any short term risks to rankings with a filename extension change like this?
- Should an exercise like this be staggered or is it ok to carry out the site-wide change in one go?
- 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?
- 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.
-
-
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.
-
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
-
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?
-
Thank you Alan
-
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.
-
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
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Broken URL Links
Hi everyone, I have a question regarding broken URL links on my website. Late last year I move my site from an old platform to Shopify, and now have broken URL links giving out 4xx errors. When I look at Moz Pro>Campaigns>Insights>links, I can see the top broken URL links, however there is a difference if copy & paste URL directly from Moz Pro and by Export CSV file. For example below, If I copy and paste links direct from Moz Pro, it has the “http://” in front as below: http://www.thehairhub.com.au/WebRoot/ecshared01/Shops/thehairhub/57F3/1D8F/D244/C675/E27D/AC10/003F/35AD/manic-panic-colours.jpg But when I export the list of links as an CSV file, the http:// is removed. www.thehairhub.com.au/WebRoot/ecshared01/Shops/thehairhub/57F3/1D8F/D244/C675/E27D/AC10/003F/35AD/manic-panic-colours.jpg Another Example below: By copy & paste URL direct from Moz Pro
Technical SEO | | johnwall
http://thehairhub.com.au/Shop-Brands/Vitafive-CPR/CPR-Rescue By export CSV file.
thehairhub.com.au/Shop-Brands/Vitafive-CPR/CPR-Rescue Which one do I use to enter into the “Redirect From” field in Shopify URL Redirects? Do I need to have the http:// in front of the URL? Or is it not required for redirects to work? Kind Regards, John Wall
The Hair Hub0 -
URL 301 Re-direct
Hello, If we publish a blog post with a url which accidentally contains a number at the end (blog.companyname.com/subject-title-0), is it best-practice to update the URL (e.g. to blog.companyname.com/subject-title) and put in a 301 re-direct from the old to the new one or should it simply be left as is? I've read that 301's lose link equity and relevance so is it really worth re-directing for the sake of a cleaner url? Thanks for your input! John
Technical SEO | | SEOCT1 -
Should change some pages with key stuffing?
Hello, i have a website with 1 years old and when i started, when i created the pages, theses have key stuffing (20-30-40 same words in meta descriptions and text, sometimes 15, sometimes 20 and sometimes 40). Since i saw this (about 4 months), i change that, doing new pages with 5-10 same keywords. Some pages with many keywords (20-30-40) work very fine and i would not lose the position in google, but i don't want to be penalized for that. Then, my question is: Should change the old pages with key stuffing or let them? Thanks so much.
Technical SEO | | pompero990 -
Should I change by URL's
I started with a static website and then moved to Wordpress. At the time I had a few hundred pages and wanted to keep the same URL structure so I use a plugin that adds .html to every page. Should I change the structure to a more common URL structure and do 301 directs from the .html page to the regular page?
Technical SEO | | JillB20130 -
Changing Domain Name
Hi all, A client has just got their .edu domain and they want to change their current domain name (a .com) to this new .edu domain. The domain's CMS is Wordpress. Please correct me if I'm wrong, but basically I will need to create a new site (but they want to keep current design), move everything across to the new domain name, and 301 URL per URL? What about all the citations that the old URLs have gotten? The website is listed on Google listings/maps for some of their local keywords. Is there anyway to preserve this? Thank you all in advance.
Technical SEO | | EdwardDennis0 -
Basic URL Structure Question
Hi, Putting together a URL for a product we are selling. We sell IT Training courses and the structure is normally Top Folder=Main Courses section Sub Folder=Vendor Page Specific=Course Name + Term An example is courses/microsoft/mcse-training However I have a product where the vendor and course name are the same. How should I best organise the URL - double mention or single mention So a) courses/togaf/togaf-foundation-training or b) courses/togaf/foundation-training
Technical SEO | | RobertChapman0 -
How to find original URLS after Hosting Company added canonical URLs, URL rewrites and duplicate content.
We recently changed hosting companies for our ecommerce website. The hosting company added some functionality such that duplicate content and/or mirrored pages appear in the search engines. To fix this problem, the hosting company created both canonical URLs and URL rewrites. Now, we have page A (which is the original page with all the link juice) and page B (which is the new page with no link juice or SEO value). Both pages have the same content, with different URLs. I understand that a canonical URL is the way to tell the search engines which page is the preferred page in cases of duplicate content and mirrored pages. I also understand that canonical URLs tell the search engine that page B is a copy of page A, but page A is the preferred page to index. The problem we now face is that the hosting company made page A a copy of page B, rather than the other way around. But page A is the original page with the seo value and link juice, while page B is the new page with no value. As a result, the search engines are now prioritizing the newly created page over the original one. I believe the solution is to reverse this and make it so that page B (the new page) is a copy of page A (the original page). Now, I would simply need to put the original URL as the canonical URL for the duplicate pages. The problem is, with all the rewrites and changes in functionality, I no longer know which URLs have the backlinks that are creating this SEO value. I figure if I can find the back links to the original page, then I can find out the original web address of the original pages. My question is, how can I search for back links on the web in such a way that I can figure out the URL that all of these back links are pointing to in order to make that URL the canonical URL for all the new, duplicate pages.
Technical SEO | | CABLES0 -
How can i redirect a url that has % in it?
Google webmaster tools shows a 400 eroor for an old link that contains a 30% off in it. The problem is the % I would like to 301 redirect this link : http://www.geographics.com/Graduation-Stationery,-35%-OFF-Printable-Certificates-Blank-Gift-Certificates/c1353_1354_1359/index.html to http://www.geographics.com/Graduation-Stationery-Printable-Certificates-Blank-Gift-Certificates/c1353_1354_1359/index.html We do not know how to do this in httaccess. Can you please advise? Thanks a lot! Madlena
Technical SEO | | Madlena0