On 25 Jan 2011, at 09:52, Wade Preston Shearer wrote: > I am trying to construct the following mod_write rule: > > If domain matches "www.gremlins.com" and URI does not begin with > "/banana/boat," then redirect to http://cheese.com. > > > RewriteCond %{HTTP_HOST} ^www.gremlins.com$ > RewriteCond %{REQUEST_URI} !^/banana/boat(.*)$ > RewriteRule ^(.*)$ http://cheese.com/$1 [QSA,L] > > > The ! isn't working though. Any ideas? >
"! is like the ^ in a grouped regular expression and stands for Not, but can only be used at the beginning of a rule or condition, not in the middle." (http://www.webmasterworld.com/forum92/4332.htm) _______________________________________________ UPHPU mailing list [email protected] http://uphpu.org/mailman/listinfo/uphpu IRC: #uphpu on irc.freenode.net
