 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
LAN_Rover

Joined: 06 Feb 2006 Posts: 19 Location: Petawawa, Ontario, CANADA
|
Posted: Sat Nov 18, 2006 4:16 pm HTML to PHP questio |
|
|
|
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
|
Posted: Wed Nov 22, 2006 6:40 am |
|
|
|
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
|
Posted: Tue Nov 28, 2006 12:33 pm |
|
|
|
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 |
|
|
|
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
|
|
|
|
|
 |
|
|
|
|
|
|
|