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
-
Want to change URL for a page
Hey there Mozzers. I want to change the url of a certain page on my website. Example: www.example.com/poker-face I want to change this www.example.com/poker-faces Should I create a new page and make the old one 301? Does 301 pass all the link juice in the new page or do i have to make a rel=canonical also ?
Technical SEO | | Angelos_Savvaidis0 -
High DA url rewrite to your url...would it increase the Ranking of a website?
Hi, my client use a recruiting management tool called njoyn.com. The url of his site look like: www.example.njoyn.com. Would it increase his ranking if I use this Url above that point to njoyn domain wich has a high DA, and rewrite it to his site www.example.com? If yes how? Thanks
Technical SEO | | bigrat950 -
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 -
When to use canonical urls
I will be the first to admit I am never really 100% sure when to use canonical urls. I have a quick question and I am not really sure if this is a situation for a canonical or not. I am looking at a my friends building website and there are issues with what pages are ranking. Basically there homepage is focusing on the building refurbishment location but for some reason in internal page is ranking for that keyword and it is not mentioned at all on that page. Would this be a time to add the homepage url and a canonical on the ranking page (using yoast plugin) to tell Google that the homepage is the preferred page? Thanks Paul
Technical SEO | | propertyhunter0 -
Exact URL Match For Ranking
Has anyone else run into this issue? I have a competitor that purchases domain names for popular inner pages we are trying to rank for. We are trying to build a brand, our competitors have a lower domain authority but rank higher for inner pages in the serps with VERY little content, backlinks/seo work, they host a single page and do a re-direct to their main site. Would this be a good long term strategy? EX. We sell golf clubs our brand name is golfcity (Ex only) and we carry callaway clubs, our competitor is also building a brand but they purchased callawayclubs.net and do a re-direct. They rank on page one for keywords callaway clubs. If I do try to do this does one have an advantage over another? .com. net .org. because Ive seem them all used and rank on page 1. Thank you!!!
Technical SEO | | TP_Marketing0 -
Determine the best URL structure
Hi guys, I'm working my way through a URL restructure at the moment and I've several ideas about the best way to do it. However, it would be good to get some views on this. At the moment I'm working on a property website - http://bit.ly/N7eew7 As you can quickly see, the URL structure of the site needs a lot of work. Similar websites - http://bit.ly/WXH5WG http://bit.ly/Q3UiLC One of the sites has http://www.domain.ie/property-to-let/location/ And the other has http://www.domain.ie/rentals/location/property-to-let/ I could do with some guidance about the best steps to take with this. I've a few ideas myself but this is a massive project. Cheers, Mark
Technical SEO | | MarkScully0 -
How to tell google about the changes
Hello All this is my first question here. we have recently changed our website design and backend. so the problem now is in google it is showing the old url's and when ever a client come from google he is prasented with a 404 error page if this happenes many times. will google penalise our site ? if yes. how to prevent this from happen. waiting for some replies.. thanks
Technical SEO | | idreams1 -
How to proceed with domain switch AND url change
Hi, in a few weeks we'll do a major change on our website. This involves over 1.5 million pages indexed in Google driving substantial amount of our traffic. Basically we have 2 types of changes: subdomain switches to domain:
Technical SEO | | TruvoDirectories
ex. product.company.com will become www.product.com
for this we know how to manage DNS and Apache rules different url patterns, basically replacing ugly urls by pretty urls
for this we have advanced 301-mapping rules set up Here is the question - what is best way to proceed with these 2 changes in order to preserve rankings and organic traffic: Do both changes simultaneously? First do url changes, than the domain switch Can you please share your thoughts?0