Query on htaccess, canonical issue | Please help me

Discussion in 'Site & Server Administration' started by Lary121, Apr 14, 2010.

  1. #1
    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]
     
    Lary121, Apr 14, 2010 IP