Transitioning from .html to .php

This is a discussion on "Transitioning from .html to .php" within the PHP Forum section. This forum, and the thread "Transitioning from .html to .php are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Sep 29th, 2007, 10:50
New Member
Join Date: Sep 2007
Location: SoCal
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Transitioning from .html to .php

I'm currently in the process changing my existing website http://motor-fx.net/ from html to php. After renaming my pages it came to my attention that people couldn't access my site anymore because it was still being referenced as motor-fx.net/index.html instead of motor-fx.net/index.php. I was thinking of starting from scratch but I just got indexed by google (yay*). Can anyone offer some guidance on how to tackle this situation. I have no idea how to go about this transition. Should I set up redirects for now? Any advice would be greatly appreciated...
Reply With Quote

  #2 (permalink)  
Old Sep 29th, 2007, 10:56
AdRock's Avatar
SuperMember

SuperMember
Join Date: Jul 2006
Location: Devon, England
Posts: 565
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to AdRock
Re: Transitioning from .html to .php

Does your server support php?
Reply With Quote
  #3 (permalink)  
Old Sep 30th, 2007, 06:35
New Member
Join Date: Sep 2007
Location: SoCal
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Transitioning from .html to .php

Yes it does AdRock I'm on a Hostgator Shared plan. Doing a little research I think I found a solution to this by placing the following code in .htaccess:

Code: Select all
AddHandler application/x-httpd-php .html
So if anyone is changing from static html to php this might help.
Reply With Quote
  #4 (permalink)  
Old Sep 30th, 2007, 20:01
simonb's Avatar
Blog Moderator

Join Date: Dec 2006
Location: Norwich
Posts: 667
Blog Entries: 4
Thanks: 4
Thanked 2 Times in 2 Posts
Send a message via Skype™ to simonb
Re: Transitioning from .html to .php

you can do that in your cpanel as well.
Last Blog Entry: Whats your Niche? (Jun 10th, 2008)
Reply With Quote
  #5 (permalink)  
Old Sep 30th, 2007, 22:51
alexgeek's Avatar
Technical Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,772
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
Re: Transitioning from .html to .php

Quote:
Originally Posted by alandomixwell View Post
Yes it does AdRock I'm on a Hostgator Shared plan. Doing a little research I think I found a solution to this by placing the following code in .htaccess:

Code: Select all
AddHandler application/x-httpd-php .html
So if anyone is changing from static html to php this might help.
Thanks! This is going in my notebook
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Reply With Quote
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with my html totally new Web Page Design 12 May 30th, 2007 20:39
Help With My Html totally new Web Page Design 4 May 15th, 2007 12:57
Html leonheart Introduce Yourself 3 Aug 19th, 2005 21:55
Do I need to know HTML before CSS Galaxyblue Web Page Design 4 Feb 5th, 2004 23:11


All times are GMT. The time now is 07:36.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43