PDA

View Full Version : html to php


whl626
26-01-2004, 19:47/07:47PM
I have changed all my html pages into php for easy updating. Can anyone tell me if it would affect my keywords rankings in Google's listings.

I can tell you, so far it hasn't any bearing on my position at Google. But I learn that Google advise webmasters not to do redirect at their site.

I can't help since I've changed into php that I do the redirect with my .htaccess file and it seems that Google's spider doesn't detect it and index my new php page with the old html remaining in the listings :).

Any comments on this ?

polarmate
26-01-2004, 20:06/08:06PM
Make sure that the redirect is a 301 redirect from the htm pages to the php pages. You don't need the htm pages anymore once you have the redirect in place. And you certainly don't want the htm pages as well as the php pages in the index, so it would be a good idea to exclude the htm pages using robots.txt. Once all the php pages have been indexed, you can delete all the htm pages.

whl626
26-01-2004, 20:16/08:16PM
There are no more html pages left on the server. What I mean is that the html pages are in Google's listings. And it is glad to see more exposure to the site.

OK to be more specific, I have changed slang01.html into slang.php and do the redirect with my .htaccess. At first, I thought after Google indexing my slang.php, it would scrap the old slang01.html in its listing. Now it has both.

Because Google advises webmasters not to duplicate a page. I wonder if this practice falls into what they claim ? But this is something beyond what I can manage.

It seems to be that the spider still considers the html page is in existence. I will wait until it no longer exists at the engine then I delete the redirect in my .htaccess.

Oh, by the way what is ' 301 redirect ' ???

polarmate
26-01-2004, 20:20/08:20PM
Google will drop the htm pages once it resolves the 301 redirect from the htm pages to the php pages.

whl626
26-01-2004, 20:23/08:23PM
I see, thanks. I thought the spider is unable to know if the redirect is done through .htaccess :)

polarmate
26-01-2004, 20:31/08:31PM
301 redirect is a permanent redirect. It is the part of the http header message that is sent to a user agent when it tries to access a page. It tells the user agent that the location of the page has moved to another URI for good. Google likes this because then they don't serve up pages that 404 to their searchers.

Search in here for what a 301 redirect is and how to implement it.

Here's an example of how to do it using your .htaccess file.
http://www.ihelpyouservices.com/forums/showthread.php?s=&postid=121237#post121237