Knowledge Base Glossary   
Search  
   
Browse by Category
Knowledge Base .: Web Programming .: PHP .: How do I change the default document on my PHP site?

How do I change the default document on my PHP site?

You can use the following inĀ  a .htaccess file to change the default document on your PHP4 or PHP5 based sites:

DirectoryIndex filename.html

This would cause filename.html to be treated as your default page, or default directory page. You can also add additional filenames to it.

DirectoryIndex filename.html index.cgi index.pl default.htm home.php home.html

How helpful was this article to you?

Related Articles

article How do I change the default document on my Windows/IIS site?
You can change the default index file for your...

(No rating)  9-9-2008    Views: 963   
article How do I change my site's default technology?
You have the ability to change the default...

  9-9-2008    Views: 984   
article How do I change the default character set for PHP?
In an .htaccess file placed in the directory...

(No rating)  9-9-2008    Views: 1787   

User Comments

Add Comment
No comments have been posted.


.: Powered by Lore 1.5.6