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 PHP 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 default.htm home.php home.html

Was this content helpful?

© 2015 Rackspace US, Inc.

Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License

See license specifics and DISCLAIMER