[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] apache redirect based on http referer
- Subject: [ale] apache redirect based on http referer
- From: forsaken at targaryen.us (Forsaken)
- Date: Tue, 29 Jul 2008 21:06:11 -0400
- In-reply-to: <[email protected]>
- References: <[email protected]>
Brian Pitts wrote:
> RewriteCond %(HTTP_REFERER) ^http://newbb/login\.php.*$
> RewriteRule ^/index\.php$ viewforum.php?f=2 [R]
>
Just out of curiosity, is this a direct copy/paste of what's in your
config/.htaccess? If so, it might just be a syntax error. I'm pretty
certain that it should be {HTTP_REFERER} (curly braces), at least I've
never tried it with parentheses or seen it documented that way. That's
the only thing I can see wrong with it offhand, though I'm not so good
with Rewrite rules from scratch, I keep all that crap documented in the
wiki at work.
You did spell Referrer the apache way though! That's the other common
mistake I see people making :)