Affiliate Marketing
Forum Search

Reply
 
LinkBack Thread Tools Display Modes

  #1 (permalink)  
Old 21-02-07
Registered User
 
Join Date: Jun 2004
Location: Yorkshire
Posts: 127
Thanks: 0
Thanked 0 Times in 0 Posts
OnlineMerchants seems to know their stuff
  Changing fom .html to .php

Hi all,

I am currently changing some older html pages to include some
new features. The pages are well indexed in Google at the moment so
I don't really want to loose the positions by changing the extension to
.php

I could do a redirect 301 but although that would help i'd probably loose
the page rank.

I'm using a Linux server and wanted to try including this in a .htaccess
file:

Code:
AddType application/x-httpd-php .html
I believe doing this will allow PHP commands to be run in the .html file
as if they were in a .php file.

Has anyone used the above and had problems?? Don't want to mess up
my google position so thought i'd ask first

Thanks in advance.

Cheers

Steve
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 21-02-07
Keith's Avatar
affiliatejedi
 
Join Date: Aug 2003
Location: Richmond North Yorkshire
Posts: 2,048
Thanks: 2
Thanked 0 Times in 0 Posts
Keith seems to know their stuff
  Re: Changing fom .html to .php

I use

AddHandler application/x-httpd-php .html

had no problems
__________________
Keith

Internet Marketing Blogs UK all the blogs together in one place (pm for inclusion)
My Blog general ramblings
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 21-02-07
Kandevil's Avatar
Ian Ebbs
 
Join Date: Aug 2003
Location: England
Posts: 1,065
Thanks: 0
Thanked 0 Times in 0 Posts
Kandevil is an unknown quantity at this point
  Re: Changing fom .html to .php

Depending on how your site is set up different variants will work for you. I'll give you what I use nowadays it should work:

Code:
RemoveHandler .html .htm
AddHandler application/x-httpd-php .php .htm .html
Then you'll be fine with your pages. If it doesn't work you'll be able to see that and take it off. Just give it a try and see.

If it looks fine to you in your web browser then it will look the same to Google.
__________________

affiliates4u Fantasy Football Winner 2007/08
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 21-02-07
Registered User
 
Join Date: Jun 2004
Location: Yorkshire
Posts: 127
Thanks: 0
Thanked 0 Times in 0 Posts
OnlineMerchants seems to know their stuff
  Re: Changing from .html to .php

Thanks guys for the prompt replies - appreciated!!

I guess you learn something new everyday - I didn't know that it could
be done this way - it certainly saves me a bit of work and am glad that
my Google position won't be effected.

Cheers

Steve
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
.htm and .php versions of the same site sham Widgets, Coding, AJAX, PHP - Technology & Affiliate Marketing 3 29-05-05 03:05 PM


Affiliate Marketing RSS Feeds - Contact Us - Affiliate Marketing - Archive - Privacy Statement - Top

Content Relevant URLs by vBSEO 3.2.0 RC7