Welcome! Log In Create A New Profile

Advanced

Redirect to custom landing pages based on http referer

June 05, 2014 03:15AM
Is it possible using nginx to essentially look at the http referer header, and if its set to a specific value, and the page is index.html or /, redirect to a custom landing page.

For example:

# Psuedo code
if($page = "index.html" and $http_referer ~* (www\.)?amazon.com.*) {
rewrite ^ "our-amazon-landing-page.html" permanent;
}
Subject Author Posted

Redirect to custom landing pages based on http referer

justink101 June 05, 2014 03:15AM

Re: Redirect to custom landing pages based on http referer

Francis Daly June 05, 2014 03:36AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 80
Record Number of Users: 8 on December 15, 2016
Record Number of Guests: 386 on August 02, 2016
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready