Posts

Showing posts with the label redirect

Redirect index.html to root

Here is the code: RewriteEngine On RewriteRule ^index\.html$ / [R=301,L] RewriteRule ^(.*)/index\.html$ /$1/ [R=301,L] Put this code in .htaccess file