Multiple domains in variable for "SetEnvIf Referer"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have a rewrite where we'll be creating a cookie if you're being redirected from a few specific domains.  Is there a way I can use one variable to handle multiple domains or does the rewrite block need to be repeated based on the domain?  I'd like one block to be able to be directed to handle 3-4 specific domains.  Thanks

SetEnvIf Referer test.com OLD_REFERER=$1
RewriteCond %{HTTP_REFERER} test.com [NC]
RewriteRule ^ - [CO=LEGACY:%{ENV:OLD_REFERER}:.example.com:1440:/]

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux