Method 1 :

 

Put the following code in .htaccess to redirect index.html to home.html

 

RewriteEngine on
RewriteRule ^home\.html /index\.html

 

 

 

Method 2 :

 

In your root .htaccess file add the following

 

DirectoryIndex home.html home.htm index.html index.htm

 

This will first look for and display home.html then home.htm.

這篇文章有幫助嗎? 0 Users Found This Useful (0 Votes)