[ale] apache redirect based on http referer

Brian Pitts brian at polibyte.com
Tue Jul 29 21:28:37 EDT 2008


Forsaken wrote:
> 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.

That was it! Apparently I need better glasses or a better font for Firefox.

-Brian


More information about the Ale mailing list