horseatingweeds Posted May 24, 2007 Share Posted May 24, 2007 I want to change my .htm pages to .php pages. My current .htm pages number about 60 and I plan to add about 25 new pages. The new ones obviously will start as .php I have read a lot of complicated stuff about re-directs and re-writes but I'm not sure my site is worth all that. My main concern is if I change thispage.htm to thispage.php, Google will look at thipage.php and think it's a duplicate of thispage.htm and do something funny with it. Here is what I am currently thinking: I'll publish 25 new .php pages soon. Then in a week another 25 making a total of 50 .php pages. I'll add them to the google map too. My current .htm pages I will replace with a simple list of links to the .php version and put a JavaScript forwarding script sending any users to the .php copy. Anyone see any problems with this idea? Like I said, my main fear is google thinking I am making duplicates. Does anyone think Google with compare my .php version with an already indexed .htm version and not index the .php version, even if the actual .htm version is now different. I hope this is clear. Quote Link to comment https://forums.phpfreaks.com/topic/52875-changing-from-htm-to-php-without-google-trouble/ Share on other sites More sharing options...
corbin Posted May 24, 2007 Share Posted May 24, 2007 Google theoretically should treat the files as if they're unique files (but I don't know how google works, so don't take my word for it ;p). Hmmm.... I would suggest using htaccess to make Apache parse htm as html. If that isn't possible, then I would just do what you suggested and hope google doesn't go too crazy for too long if it does do what you fear. Quote Link to comment https://forums.phpfreaks.com/topic/52875-changing-from-htm-to-php-without-google-trouble/#findComment-261064 Share on other sites More sharing options...
fou2enve Posted May 24, 2007 Share Posted May 24, 2007 ive done this a couple time with a couple sites, as long as the redirect is a permanent redirect (403 i think the code is) then google sees the new php as a replacement for old ones Quote Link to comment https://forums.phpfreaks.com/topic/52875-changing-from-htm-to-php-without-google-trouble/#findComment-261085 Share on other sites More sharing options...
horseatingweeds Posted May 24, 2007 Author Share Posted May 24, 2007 How do you do, or specify, a permanent relocation or 403 redirect. I was planing on just location.href= "thispage.php" but if there is a specific redirect or replacing pages I'd like to understand it. Is this all I need? <meta HTTP-EQUIV="REFRESH" content="0; url=http://www.thiswebsite.com/thispage.php"> Quote Link to comment https://forums.phpfreaks.com/topic/52875-changing-from-htm-to-php-without-google-trouble/#findComment-261183 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.