
Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [tlug] htaccess, rewritecond, and wildcards!! [help!]
> I have tried the following:
>
> RewriteCond %{REMOTE_HOST} !(*.)saitama(*.) [NC]
>
> to no avail.
>
> I have also tried things like
>
> RewriteCond %{REMOTE_HOST} !*saitama* [NC]
> RewriteCond %{REMOTE_HOST} !saitama [NC]
> RewriteCond %{REMOTE_HOST} !^.saitama. [NC]
> (as you may have noticed, I have no idea what the "^" does, but it
> seems to work sometimes.)
I was just looking at the below tutorial, and it seems like just
"!saitama" should've worked. But how about turning it into a full regex:
RewriteCond %{REMOTE_HOST} !^(.*)saitama(.*)$ [NC]
Darren
http://www.vortexmind.net/index.php/2006-02-26-apache-htaccess-tweaking-tutorial/
Home |
Main Index |
Thread Index