Page 1 of 1

Re: Setting a default main page

Posted: Tue Jan 24, 2012 2:17 am
by rupali
setting a default page is created in same as we create html page, to call php we need to use redirection in form attribute with the filename in "action" or there are some other methods for redirection in php.

Re: Setting a default main page

Posted: Tue Jan 24, 2012 6:43 pm
by L33R
call it index.html or put a .htaccess file in the root directory with

DirectoryIndex index.php index.html

should load index.php first and index.html if the first file doesnt exist.... you can put in any filenames

DirectoryIndex thisfileonly.php

DirectoryIndex hoorah.php checkbox.php

etc...

Re: Setting a default main page

Posted: Tue Jan 24, 2012 7:06 pm
by L33R
oh yeah there is a problem in windows that doesnt like you to call or rename a file .htaccess

if you create it in notepad it will save it as .htaccess.txt

just remove the txt and save as .htaccess.

windows automatically saves it as .htaccess