.html to .php

I have a site that I am pumping some php includes via markup item, and therefore need to change the docment to .php - the only problem is all the SEO (handled by a third party) has been done and is working great with all the urls as .html

I know I can do a simple redirect for each of the affected pages, but is there a way of having this php code in the page without change the url?

Nathan Garner
Creative Director

Austin Wells Design Limited
One Elmgate Drive - Littledown - Bournemouth BH7 7EF
t 01202 301271 e email@hidden w http://www.austinwellsdesign.co.uk

Member of NAPP | Zen Affiliate | Dorset Business Member | YEC

Facebook | Twitter | LinkedIn


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Nathan,
Try and set the server to parse html files for php using an htaccess file like this;
http://pulsecms.com/tips/parse.php

The server will now treat html pages as if they are php and you can keep your html extensions. The other benefit is that you can preview your site locally in Safari (albeit without the php blocks) unlike regular php pages.
Regards,
Tim.

On 7 Jan 2011, at 13:25, Nathan Garner wrote:

I have a site that I am pumping some php includes via markup item, and therefore need to change the docment to .php - the only problem is all the SEO (handled by a third party) has been done and is working great with all the urls as .html

I know I can do a simple redirect for each of the affected pages, but is there a way of having this php code in the page without change the url?


Tim Plumb
Creative Director
Softpress Systems

Follow us on Twitter: http://www.softpress.com/tny/064
Join us on Facebook: http://www.softpress.com/tny/063
Looking for a webhost? We love these guys: http://www.softpress.com/tny/sxf


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Wow, thanks Tim - that is perfect, much appreciated.

Nathan Garner

http://www.austinwellsdesign.co.uk

FW5.5 Pro | MacBook Pro | Snow Leopard

On 7 Jan 2011, at 13:34, Tim Plumb wrote:

Hi Nathan,
Try and set the server to parse html files for php using an htaccess file like this;
http://pulsecms.com/tips/parse.php

The server will now treat html pages as if they are php and you can keep your html extensions. The other benefit is that you can preview your site locally in Safari (albeit without the php blocks) unlike regular php pages.
Regards,
Tim.

On 7 Jan 2011, at 13:25, Nathan Garner wrote:

I have a site that I am pumping some php includes via markup item, and therefore need to change the docment to .php - the only problem is all the SEO (handled by a third party) has been done and is working great with all the urls as .html

I know I can do a simple redirect for each of the affected pages, but is there a way of having this php code in the page without change the url?


Tim Plumb
Creative Director
Softpress Systems
http://www.softpress.com

Follow us on Twitter: http://www.softpress.com/tny/064
Join us on Facebook: http://www.softpress.com/tny/063
Looking for a webhost? We love these guys: http://www.softpress.com/tny/sxf


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options