301: Which one?

Discussion in 'Site & Server Administration' started by Solicitors Mortgages, Jan 9, 2006.

  1. #1
    I am trying to get the non-www cached site out of google (for some time now) i have been using the top example, should i use the bottom example with the code 301 in it?

    and why does the bottom example have the extra $ [NC] at the end of the first line?:eek:

    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^digitalpoint\.com
    RewriteRule ^(.*)$ http://www.digitalpoint.com/$1 [R=permanent,L]
    
    
    
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^digitalpoint\.com$ [NC]
    RewriteRule ^(.*)$ http://www.digitalpoint.com/$1 [R=301,L]
    Code (markup):
     
    Solicitors Mortgages, Jan 9, 2006 IP