PDA

View Full Version : index.php as homepage?


nomadsoul
03-02-2007, 04:56 PM
Can I use index.php as the homepage instead of index.html? how do I change this?
There's some php code I want to put in the homepage and php must a .php extension

Melissa
03-02-2007, 05:02 PM
Hi,

You can do this through .htaccess (http://service.FutureQuest.net/kb121). These threads should help:
http://www.aota.net/forums/showthread.php?t=10047
http://www.aota.net/forums/showthread.php?postid=136092#post136092

nomadsoul
03-02-2007, 05:13 PM
Okee Dokley thanks

hobbes
03-02-2007, 05:22 PM
Simply rename index.html to index.php. The server already recognizes the latter as a default index file name.

nomadsoul
03-02-2007, 05:24 PM
Simply rename index.html to index.php. The server already recognizes the latter as a default index file name.
Behold: www.primehomesrealestate.com


-I did but just get a blank page.
also where is the .htacess file? I even did an ls -a and can't find it.
Thanks

Melissa
03-02-2007, 05:24 PM
The server already recognizes the latter as a default index file name.Correct. To clarify, if you don't have an index.html file (or index.shtml, index.shtm, index.htm), the server will automatically see index.php as the "default" (i.e. no need for an .htaccess directive in that case):
http://service.FutureQuest.net/kb129

nomadsoul
03-02-2007, 05:30 PM
do i need to nest the html in <? ?>'s ? I didn't think I had to do that

Im changing it back to .html till I figure out whats wrong

kitchin
03-02-2007, 05:49 PM
No, do not nest the html in <? ?>. Also, if index.php fails (blank page), then start testing by uploading an index.php without any <?php ?> tags. If that works, then start adding them back in. Learning, fun.

nomadsoul
03-02-2007, 06:13 PM
I see that I need to make an .htaccess file. Sometimes it takes me awhile

nomadsoul
03-02-2007, 06:19 PM
I removed the xml tag that the wsywig put in at the top of the page.
Then I renamed it to index.html and all is now well, go figure
www.primehomesrealestate.com