Welcome to WebmasterWorld Guest from 35.175.191.168

Forum Moderators: Robert Charlton & goodroi

Message Too Old, No Replies

Changing from html to php - affect search rankings?

     
7:24 pm on Apr 5, 2011 (gmt 0)

Preferred Member

10+ Year Member Top Contributors Of The Month

joined:May 1, 2005
posts:414
votes: 2


Being a simple soul I design my sites in html.
I have a customer who has "bought" a mobile version of his site, Effectively this is a .mobi domain name and code to convert hispages. He's sent it through to me to implement for him.

Here's the nub - it requires all his pages to be in php and so I need to convert all his pages from html to php.

Here's the question - will changing index.html to index.php, prices.html to prices.php affect his search rankings?
7:35 pm on Apr 5, 2011 (gmt 0)

Junior Member from GB 

10+ Year Member

joined:July 12, 2006
posts:74
votes: 10


As long as you have been redirecting index.html to / you will be ok. I did the same thing with one of my sites and saw no change in rankings
7:39 pm on Apr 5, 2011 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member themadscientist is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Apr 14, 2008
posts:2910
votes: 62


Technically, .php is a different page than .html and you'll lose some link weight through the redirects, so imo it would be better to rewrite the php to the html extensions, or parse the html as php. You can find out more about how in the Apache Forum [webmasterworld.com]. It's actually fairly simple to parse the html as php if it's going to be every page.
8:20 pm on Apr 5, 2011 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month

joined:Sept 25, 2005
posts:2091
votes: 370


Here's a similar topic that might be helpful: [webmasterworld.com...]
8:45 pm on Apr 5, 2011 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Jan 28, 2003
posts:1979
votes: 0


will changing index.html to index.php, prices.html to prices.php affect his search rankings?

Yes, it will have an effect on rankings. I definitely would parse the html as PHP, just like TheMadScientist is recommending.

If you change URLs then you'll lose some rankings.
8:55 pm on Apr 5, 2011 (gmt 0)

Senior Member

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:July 3, 2002
posts:18903
votes: 0


There is no need to change the URLs when you add PHP functionality to a site.

There are two ways to do this.

Either force .html files to be parsed for PHP content, or change the files from .html to .php and implement an internal rewrite so that when a .html URL is requested the server looks for the matching .php file to carry out the request.

To be clear, URLs and files are not at all the same thing, and the action of a server is to map a URL request to an internal file.
1:20 am on Apr 6, 2011 (gmt 0)

Moderator This Forum from US 

WebmasterWorld Administrator robert_charlton is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Nov 11, 2000
posts:12388
votes: 409


I have a customer who has "bought" a mobile version of his site, Effectively this is a .mobi domain name and code to convert hispages. He's sent it through to me to implement for him.

Before you implement .mobi as the mobile version, you might want to check this current thread...

Best type of redirect to use, from desktop to mobile site?
http://www.webmasterworld.com/google/4291642.htm [webmasterworld.com]

In particular, check out Google's recommendations....

They are specifically recommending a 301 redirect from www.domain.com to m.domain.com.

So it may be that .mobi is not the way you want to go, and for various reasons you may end up not using the script that requires php.
9:32 am on July 7, 2011 (gmt 0)

Preferred Member

10+ Year Member Top Contributors Of The Month

joined:May 1, 2005
posts:414
votes: 2


Belatedly - many thanks for the replies - very helpful