HowTo Redirect cPanel Default Hostname Web Page

In /usr/local/apache/conf/httpd.conf, add “Redirect 301 /index.html http://www.domain.com/”

<Directory “/usr/local/apache/htdocs”>
Options Includes Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
Redirect 301 /index.html http://www.domain.com/
</Directory>

Leave a Reply

Your email address will not be published. Required fields are marked *