Comment on 301 Redirect Htaccess by SEO Dave.

301 Redirect Htaccess This code:

DirectoryIndex index.html index.asp index.htm index.php
RewriteEngine On
Redirect 301 /index.html http://www.domain.com/

Will cause a loop.

You are saying via DirectoryIndex that index.html is the home page if it exists, then redirecting index.html to root which will look for index.html which will redirect to root which is index.html which will redirect to root…..

Easy solution to this would be to remove the 301 redirect of index.html and add a canonical URL to the index.html file:

<link rel="canonical" href="http://www.example.com/" />

When http://www.example.com/index.html is respidered the major search engines should only index / not /index.html and pass on any link benefit of links to /index.html

A canonical URL is like a ‘soft’ 301 redirect.

David Law