homepage Welcome to WebmasterWorld Guest from 50.19.169.37
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Google / Google SEO News and Discussion
Forum Library, Charter, Moderators: Robert Charlton & aakk9999 & brotherhood of lan & goodroi

Google SEO News and Discussion Forum

    
Changing from html to php - affect search rankings?
nickreynolds




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

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?

 

MrBlack




msg:4292648
 7:35 pm on Apr 5, 2011 (gmt 0)

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

TheMadScientist




msg:4292649
 7:39 pm on Apr 5, 2011 (gmt 0)

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.

robzilla




msg:4292671
 8:20 pm on Apr 5, 2011 (gmt 0)

Here's a similar topic that might be helpful: [webmasterworld.com...]

bhartzer




msg:4292684
 8:45 pm on Apr 5, 2011 (gmt 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.

g1smd




msg:4292696
 8:55 pm on Apr 5, 2011 (gmt 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.

Robert Charlton




msg:4292805
 1:20 am on Apr 6, 2011 (gmt 0)

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.

nickreynolds




msg:4336233
 9:32 am on Jul 7, 2011 (gmt 0)

Belatedly - many thanks for the replies - very helpful

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Google / Google SEO News and Discussion
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved