[prev in list] [next in list] [prev in thread] [next in thread] 

List:       nginx
Subject:    possible to rewrite based on referring url?
From:       "EricIsGood" <nginx-forum () nginx ! us>
Date:       2010-06-26 21:49:56
Message-ID: b82bd512d6bdb3dca786c89aea7332a0.NginxMailingListEnglish () forum ! nginx ! org
[Download RAW message or body]

here is an example called url:
http://myserver.com/index.php?id=15

I would like to change the id= based on referrer....

so I will have a list of referers....

if referer url contains moo/cow.php then rewrite to:
http://myserver.com/index.php?id=15

if referer url contains milk/cookies.php then rewrite to:
http://myserver.com/index.php?id=16

Thanks,

 -Eric

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,102778,102778#msg-102778


_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic