• Sales: 1-800-961-2888
  • Support: 1-800-961-4454

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






© 2011-2013 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