mod_rewrite RewriteCond - is NC flag necessary for just domain part? And some more
I have seen many times in htaccess these type of rules : RewriteCond %{HTTP_REFERER} !^http://www.domain.it$ [NC] or RewriteCond %{HTTP_HOST} !^www\.domain\.it$ [NC] Why is the NC flag necessary, when checking only the domain part? I noticed browsers always converts uppercases in domain names into lower cases , so I don't see what the [NC] flag is usueful for in this case. I mean if we check the remaining part of the url I understand the need for [NC] flag cause on Unix systems www.domain.com/index.html is different file than www.domain.com/INDEX.HTML but I don't understand the need of NC flag