The problem is that when a user types my site http://www.abc.com/index.html, I want to redirect him to http://www.abc.com/. Please help me solving this problem. I have already solved the canonical issue of www. & non www. through htaccess code it is solved Options +FollowSymlinks RewriteEngine on rewritecond %{http_host} ^domain.com [nc] rewriterule ^(.*)$ http://www.domain.com/$1 [r=301,nc]