HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
HTML to PHP questio
Post new topic   Reply to topic    HTML Help Forum Index -> PHP
View previous topic :: View next topic  
Author Message
LAN_Rover



Joined: 06 Feb 2006
Posts: 19
Location: Petawawa, Ontario, CANADA

PostPosted: Sat Nov 18, 2006 4:16 pm     HTML to PHP questio Reply with quote

My website was designed and written in HTML, but to save time updating and changing I've added some php elements (like inlcudes).

So now all the pages have a .php extention instead of .html

My question is twofold, before I upload the new pages and delete the old ones I'd like to know if
A) users who have bookmarked the website will still be able to get there, or will I need to keep the index.html and put a redirect function in; and
B) if I do leave the index.html in there, which page will browsers load, the .php or .html ??
degsy



Joined: 23 Feb 2005
Posts: 2440
Location: North East, UK

PostPosted: Wed Nov 22, 2006 6:40 am     Reply with quote

If you delete the old pages and a user tries to access that url then they we get an error.

In a standard setup usually index.html would take precedence over .php.


You can change both of these settings via server settings.

If you have Apache/*nix then you can use .htaccess to make the PHP scripts the primary scripts.
http://www.javascriptkit.com/howto/htaccess6.shtml


or you can redirect to the new page
http://www.javascriptkit.com/howto/htaccess7.shtml



Also, you could even change it so that your HTML pages can process the PHP by using addType and/or addHandler
LAN_Rover



Joined: 06 Feb 2006
Posts: 19
Location: Petawawa, Ontario, CANADA

PostPosted: Tue Nov 28, 2006 12:33 pm     Reply with quote

excellent, that's exactly what i was looking for

every time I post on this forum, I get the answer I'm looking for... this site is awesome
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> PHP All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial