I have the following code in my htaccess (but with my actual domain name of course), and I'm not sure if I understand exactly what it is all for....I was just wondering if someone could help explain precisely what this means.
#if the domain is not
www.mydomain.com
RewriteCond %{HTTP_HOST} !^www\.mydomain\.com$ [NC]
#redirect to
www.mydomain.com
RewriteRule ^(.*)$ http://www.mydomain.com/$1 [L,R=301]
#leave this rule in place, but after the one above to handle the home page
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.html\ HTTP/
RewriteRule ^(.*)index\.html$ http://www.mydomain.com/$1 [R=301,L]