July 30, 200818 yr Hi every one i would like a php script on my home page index.html its nealy 200 pages so would have to change the links on all the pages so before i attemt this and change it to index.php i would like to now if my server will reconise it a my home page thanks
July 31, 200818 yr It'll work. Just make sure you go with one *or* the other. If you go with both, your poor server might get confused. But, yes, .php will definitely work. I have an index.php.
July 31, 200818 yr Hi every one i would like a php script on my home page index.html its nealy 200 pages so would have to change the links on all the pages so before i attemt this and change it to index.php i would like to now if my server will reconise it a my home page thanks As long as you delete index.html and only have index.php then index.php will be your homepage.
August 1, 200818 yr It's possible to delete the html file but all those 200 pages will still reference .html and if the server can't find it then it hopefully should select index.php in it's place. The best option if you're up to it is to add a .htaccess file to your server and use mod_rewrite to redirect page requests. Here's a good resource An easy example to understand is when you visit Flickr, it shows: www.flickr.com/photos/damien_m_in_japan actually looks something like this (to the server): www.flickr.com/photos/showprofile.php?username=damien_m_in_japan Hope this info helps
August 3, 200818 yr ...or you could actually update the links. its a simple find and replace command. it'll take you ten minutes
August 3, 200818 yr Could you not keep your index page as .html and then add handlers in your .htaccess to parse whatever PHP you have in that page? Something like: AddType x-mapp-php4 .html .htm Not that I have much clue about such things!
August 3, 200818 yr hit the nail on the head there wizely That was lucky then! Goes to show if you swing a big enough hammer enough times you'll eventually hit something!
Create an account or sign in to comment