Change homepage to php


Hi my dreamhost site is currelty index.html and I want to change it to index.php. Does anyone know how to do this via the panel? Thanks.


You don’t actually have to do anything in the panel to make this work. Just place the index.php file in the root directory for the domain.

Apache will look for index.php by default if there is no index.html in the directory.


Save [color=#CC0000]$50[/color] on DreamHost hosting using promo code [color=#CC0000]SAVEFIFTY[/color] ( Click for details )


If both html and php pages exist, apache will load the html page instead of the php page. You can either delete the html page, add a redirect in the html page with a message about the new php page, or add a redirect in your htaccess file.
In the htaccess file it would look like this:

Redirect permanent /index.html