Setting a default main page

A

Anonymous

Guest
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.
 
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...
 
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
 
Back
Top