Simple rewrite (redirection)

EricTheRed03 nginx-forum at nginx.us
Wed Nov 23 19:46:13 UTC 2011


Hi Guys,

In my HTTP config section in the config file, I would like to implement
a redirection based on this scenario:

If the URL is not "http://sitea.com/exactmatch" then redirect to the
"https" home. else go to our hidden url (our testing boxes)

#logic would be somthing like this..
If (The URL is anything but "/ahiddenurl") 
{
        go to "https://sitea.com"
}
else 
{
      go to "http://hiddenurl"
}

Is this possible in the nginx.conf file?? Any help would be so very much
appreciated!

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



More information about the nginx mailing list