View Full Version : Need help updating site from .html to .php
Rich@vtws
09-28-2004, 12:59 PM
Hello everyone,
We added a new database for an existing real estate site that has excellent serps results and want to make sure we don't screw it up. :eek: :)
All the eisting page names will now .php as apposed to . html
Most of the new pages have the same exact content as the existing with the php stuff splice in so duplication is a concern too :confused:
What's the best way to insure we don't incurr any penaties? 301's
I know google would be ok but yahoo is not too god at dealing with redirects from what I hear.
Thanks in advance
Pyrrhonist
09-28-2004, 01:04 PM
how man real .html pages do you have left?
If you can change those to .php then create a mod_rewrite rule that allows you to call all files .html but actually uses the .php:
ie:
RewriteRule ^(.*).html$ $1.php [L]
That should work quite nicely for you (and we do the same thing for our old pages here.
Rich@vtws
09-28-2004, 02:27 PM
Hi Bob,
There about 600 or so other .html pages existing on the site.
I'm changing about a dozen or so.
How would I make all the other html pages stay as they are but with the php extension :huh:
Thanks
Jenny Barclay
09-28-2004, 02:51 PM
Hi Rich,
We all miss you at REW
Waiting to give you a bundle of links
[SIZE=1]Fuengirola Apartment[/SIZE] (http://www.regent-estates-group.com/s/apartments-for-sale-fuengirola/index.cfm) : [SIZE=1]Andalucian horses for sale[/SIZE] (http://www.andalucian-horses.com)
Rich@vtws
09-29-2004, 03:03 AM
I'll be there soon Jenny :D
I'm just playing catch up right now. I just got back from florida a couple days ago from helping my mom get set uop in a hotel and take care of some insurance stuff for her. She live in Vero Beach and this last storm pretty nuch destroyed her house and most everything in it :eek:
dilligaf
09-29-2004, 01:02 PM
Best of luck Rich, that area got it the worst the last two times. We've been pretty lucky over here. I can't imagine the hassle it must be with insurance companies right now with three hurricanes in the last few weeks.... and it aint over yet.
Rich@vtws
10-02-2004, 02:18 PM
Thanks for the kind words and good thoughts :)
Still no electricity or water where she is :(
They've been going in & out of hotels and back to the house every couple days.
What doesn't kill you makes you stronger I always say...;)
seo guy
10-02-2004, 10:06 PM
Rich, what I would do is KEEP the .html pages, and use mod_rewrite to make .php look like .html just like here at the forum and everywhere on SEO Guy. You see all files on my site are php files, but noone knows the difference including google because of the rewrite. Point being you only need the .php extension on the server, what you show a browser is something totally up to you.
Cyber-SEO
10-02-2004, 11:54 PM
Rich>
You can do what BOB suggested and still keep the other .html pages as html. I'm not sure why you are looking to change your pages from .html to .php but if you are doing to have the ability to use PHP inside those pages then the rewrite will not work for you in that case.
If you are looking to run php code inside the pages then they will need to be called .php within the server backnd.
vBulletin v3.0.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.