Forum Moderators: Robert Charlton & goodroi

Message Too Old, No Replies

Converting .htm to .php, Google see diff pages?

.php .htm google file name index

         

horseatingweeds

5:26 pm on May 24, 2007 (gmt 0)

10+ Year Member



I'm about to convert my site from .htm to .php. Does Google see a difference?

My worry is that Google will see my renamed files, like whatnot.php, and see an identical page in its index, whatnot.htm, and not index the new .php page because it is essentially a duplicate, minus a heap of code.

I plan to make these changes to my google maps as well.

g1smd

11:42 pm on May 24, 2007 (gmt 0)

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



Set up your server so that .html URLs are still parsed as being PHP scripts.

Google will see no differences.

ogletree

3:52 am on May 27, 2007 (gmt 0)

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



Don't change the name of your files. There is no reason to do that. Just put a line in your htaccess file.

AddType application/x-httpd-php .html

g1smd

3:47 pm on May 27, 2007 (gmt 0)

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



That's the one.

sniffer

5:54 pm on May 27, 2007 (gmt 0)

10+ Year Member



^ I remember when i first read this tip on WW, it was the best thing that happened that day