Affiliate Marketing
Forum Search

Reply
 
LinkBack Thread Tools Display Modes

  #1 (permalink)  
Old 15-08-07
Wardy's Avatar
This is the one
 
Join Date: Aug 2003
Posts: 2,681
Thanks: 0
Thanked 0 Times in 0 Posts
Wardy is an unknown quantity at this point
  Changing site from .htm to .php

I have one of my original sites that needs changing as I made it with .htm file names.
Anyway, I have put off for years changing it but I think it's come to a time now where I really need to change it to .php.

Now obviously I know how to just re-save the files as .php is simple enough, but what else do I need to do to make sure nothing goes wrong. Obviously I want to do it the most search engine friendly & user friendly way so not to lose rankings etc.

So, can anyone throw down the best method of attack to make sure all goes smoothly please?!

Cheers
Wardy
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 15-08-07
Registered User
 
Join Date: Aug 2006
Location: Hadleigh, Suffolk, UK
Posts: 952
Thanks: 0
Thanked 0 Times in 0 Posts
axod is an unknown quantity at this point
  Re: Changing site from .htm to .php

Quote:
Originally Posted by Wardy View Post
I have one of my original sites that needs changing as I made it with .htm file names.
Anyway, I have put off for years changing it but I think it's come to a time now where I really need to change it to .php.

Now obviously I know how to just re-save the files as .php is simple enough, but what else do I need to do to make sure nothing goes wrong. Obviously I want to do it the most search engine friendly & user friendly way so not to lose rankings etc.

So, can anyone throw down the best method of attack to make sure all goes smoothly please?!

Cheers
Wardy
Not sure I know what you mean...
If you want to use the features of PHP, without loosing any rankings/effecting anything at all, then just change apache config to parse .htm files as php.
Then start adding PHP code to the files as you like...
Alternatively rename everything to .php, and setup some aliases/redirects etc in the config, so that the old files eg start.htm gets rewritten or redirected to start.php

I think you need to say why you want to convert to php in the first place...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 15-08-07
Registered User
 
Join Date: Feb 2006
Location: Gillingham
Posts: 502
Thanks: 0
Thanked 0 Times in 0 Posts
Donk is an unknown quantity at this point
  Re: Changing site from .htm to .php

Not too sure if this is the best approach but I would suggest using an htaccess rewrite rule to permanently redirect all requests to *.htm to the equivalent *.php.
__________________
They came for my 404 and I said nothing
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 15-08-07
Wardy's Avatar
This is the one
 
Join Date: Aug 2003
Posts: 2,681
Thanks: 0
Thanked 0 Times in 0 Posts
Wardy is an unknown quantity at this point
  Re: Changing site from .htm to .php

Quote:
Originally Posted by axod View Post
I think you need to say why you want to convert to php in the first place...
Currently the site is a bit of a pig to make chances across the whole site, as I said it was my first site from many years ago and as such is not very easy to make changes across the whole site as each page needs individually changing as it stands if I want to change the menu etc.
The site is going to be re-designed and I want it to build it in .php as that is what I create most of my sites in now, making it easier to make things dynamic instead of static and opens up being able to do lots of other stuff to the site to try and take it forward.

Basically filenames will remain the same (other than changing from mysite.com/mypage.htm to mysite.com/mypage.php) but I want to make sure when I do the change over I do so in the ebst way to avoid any errors both to the site and SE rankings

Cheers
Wardy
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 15-08-07
esnagel's Avatar
Registered User
 
Join Date: Apr 2005
Location: Buffalo, NY USA
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
esnagel is an unknown quantity at this point
  Re: Changing site from .htm to .php

I'd just add to htaccess:

AddType application/x-httpd-php .php .htm

Then you don't have to worry about redirecting pages that are already bookmarked or in search engines, and can begin using php in your .htm files.
__________________
Eric
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
My Keyword Research - Care to contribute to the research? webdesignhq Search Engine Strategies 4 26-03-07 09:52 AM
Astrobingo Testimonials jess1 Paid On Results 0 24-08-05 07:03 PM
Negative Site Feedback bulbo The Affiliate Marketing Lounge 37 15-05-04 06:39 PM


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

Content Relevant URLs by vBSEO 3.2.0 RC7