Knowledge Base
Glossary
Search
Browse by Category
..... Domains & DNS
..... Email
..... Web Programming
..... Websites
Knowledge Base
Domains & DNS
Email
Web Programming
.htaccess
ASP and ASP.NET
CGI/Perl
Cron Jobs
Mail Scripts
PHP
Websites
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
Article
191
Created
9-9-2008
Author
dsustaita
Rating
(None)
Email
Print
Add Comment
How helpful was this article to you?
5 - Very Helpful
4
3 - Somewhat Helpful
2
1 - Not Helpful
Related Articles
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
How do I change my site's default technology?
You have the ability to change the default...
9-9-2008 Views: 984
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