Forum Moderators: open

Message Too Old, No Replies

Changing from .ASP to .PHP

page names will change, what to do?

         

Namaste

9:31 pm on Nov 22, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Next month, my whole site changes to .php from .asp. Which is a new page name. Google will obviously not associate the new page name with the earlier one.

Does anyone have any advise on what is to be done?

Brett_Tabke

9:44 pm on Nov 22, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



htaccess hard redirect (301) from old to new.

BigDave

9:53 pm on Nov 22, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



To avoid ever having this sort of problem, what I do is only have one publically available file per directory, and always use the index name.

So all my links will be to

example.com/red-widgets/

instead of

example.com/red-widgets.html
example.com/red-widgets.php or
example.com/red-widgets.asp

All I have to do is change what the default index is and the rest of the world never knows the difference.

I do use various filename.php type files when people are logged in, but those do not affect search engines or external deep links.

raptorix

10:41 pm on Nov 22, 2004 (gmt 0)

10+ Year Member



Very easy, change in webserver config that *.asp is parsed by the php interpreter.

PatrickDeese

10:48 pm on Nov 22, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



was going to suggest the same thing - technically there is no reason to change your file name extensions if you don't want to.

If you want to you can change a file with a ".html" extension to ".fake" and upload it - the browser will parse it as txt/html anyhow.

graywolf

11:24 pm on Nov 22, 2004 (gmt 0)

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



To avoid ever having this sort of problem, what I do is only have one publically available file per directory, and always use the index name

BigDave is spot on with this one. Just say no to linkrot.

Namaste

7:43 pm on Nov 23, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Very easy, change in webserver config that *.asp is parsed by the php interpreter.

have you done it? No issues with Google?

PatrickDeese

8:38 pm on Nov 23, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



> have you done it? No issues with Google?

how would Google even know? It is totally server side.

I have html parsed as PHP on most of my sites, and they rank just fine.

renee

1:32 am on Nov 24, 2004 (gmt 0)

10+ Year Member



my site was originally written using asp and migrated to php about 2 years ago. I retained the *.asp filenames and has been transparent to the search engines. you can say the transition was "bumpless".