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
-
After you remove a 301 redirect that Google has processed, will the new URL retain any of the link equity from the old URL?
Lets say you 301 redirect URL A to URL B, and URL A has some backlinks from other sites. Say you left the 301 redirect in place for a year, and Google had already replaced the old URL with the new URL in the SERPs, would the new URL (B) retain some of the link equity from URL A after the 301 redirect was removed, or does the redirect have to remain in place forever?
Technical SEO | | johnwalkersmith0 -
URL Structure
Hi, Hope you are all well. On our website we have a 'blog' and a 'news' section. The blog is located on "/blog" - but when you click on a post the url structure changes to /name-of-article and the blog subdomain isn't included. Would it be better to have "blog/name-of-article as this would then make the blog perform better in search results? Also, if our news page is under /news - but when you click on an article it changes to /news-article/name-of-article Wouldn't it be better to have /news/name-of-article Thanks a lot!! 🙂
Technical SEO | | National-Homebuyers0 -
Canonical URL
Hi there Our website www.snowbusiness.com has a non www version and this one has 398 backlinks. What is the best way of transfering this link value if i establish the www. address as the canonical URL? Thanks, Ben
Technical SEO | | SnowFX0 -
Should I make a new URL just so it can include a target keyword, then 301 redirect the old URL?
This is for an ecommerce site, and the company I'm working with has started selling a new line of products they want to promote.Should I make a new URL just so it can include a target keyword, then 301 redirect the old URL? One of my concerns is losing a little bit of link value from redirecting. Thank you for reading!
Technical SEO | | DA20130 -
SEO friendly url strategy...
Hi guys i just wanted your expert opinion on keywords in urls. The example i'm giving you is in regards to a ecommerce website: Option 1: www.example.com/shop/coffee/coffee-beans/brand-coffee-beans-500gr Option 2: www.example.com/shop/coffee/beans/brand-coffee-beans-500gr We sell coffee so i'll keep the example relevant 🙂 Does it make a difference on how the keywords are stacked throughout? Would the search engine combine the two keywords eg. .../coffee/beans/... or would i be better of having .../coffee/coffee-beans/... and is there a penalty for having the same phrase more than once in the url? I hope my question makes sense... 😉 Looking forward to your opinions and ideas!
Technical SEO | | Immanuel0 -
Keywords Rankings-Change-Bug?
Bug? or just because the change happened beyound the Top 50 within Bing & Yahoo SERPs? The Keyword Ranking for in the example "dry desulfurization" shows a change of >40 up, but the history (Google) does not show these changes. May be, it is that the change was within Yahoo and Bing Rankings, and because the keyword is not showing up within the Top 50, I just can't see? ... but Rogerbot is considering. Thanks for any response 🙂 rankings-change-bug.jpg
Technical SEO | | inlinear0 -
Importance of WMT change of address and problem doing it
Hi, How important is it to submit a change of address in WMT? I say that because I am having problems doing it so wondered if it was worth the hassle in trying to fix it. I am getting the error: "We couldn't verify website.co.uk. To submit a change of address, website.co.uk must be verified using the same method as www.website.co.uk. Add website.co.uk to your account and verify ownership, then try again." I have looked on the web to try and find an answer and have come across 2 suggestions: You might have lost the verification with the redirect. If you used a metatag on the home page, the home page is now redirecting. If you had uploaded a verification text file, that file is probably now gone and redirecting as well. You probably need to re-verify the site. Either re-upload the text file and configure it not to redirect (may be difficult) or use the DNS server verification method. You need to verify the non www. version of the website because that's the way Google like it. Not sure why solution 2 would be necessary but it does seem to be what WMT are getting. Because the site already redirects, 1 would then come in to play. Is it worth persevering with because IT will be getting a long list of stuff to do from me as it is.... Thanks all
Technical SEO | | Houses0 -
Does SEO Reflect when We change the Host??
I would like to know, if i switch to host not Domain, Just Host which just change the internal IP, Will that Affect to My SEO? If YES then What is the procedure to safe our SEO before Move? Or what is Procedure after we Moved. Hope many people found this issues, and got the solution, I through Google Webmaster do through filter, but i am not sure about it. Thanks
Technical SEO | | Webranx0