NC,OR in htaccess

by Rekha 2010-02-17 14:26:04

The [NC] code means "No Case", meaning match the url regardless of being in upper or lower case letters.

OR means "Or Next", as in, match this domain or the next line that follows.

Example:
RewriteEngine On
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?xxx\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?yyy\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?aaa\.com/ [NC]

Tagged in:

6478
like
0
dislike
0
mail
flag

You must LOGIN to add comments