Welcome! Log In Create A New Profile

Advanced

Rewrite help

Posted by alexbon 
Rewrite help
October 02, 2014 01:02PM
Hello everyone!

I'm fairly new with Nginx. Can you please help me with my rewrite?

What I want to do (if possible) is to combine my location keywords into a single line location, instead of this..

location = /agreement-guide {
rewrite ^ /agreement/agreement-overview.html permanent;
}

location = /agreement-faq {
rewrite ^ /agreement/agreement-overview.html permanent;
}

location = /agreement {
rewrite ^ /agreement/agreement-overview.html permanent;
}

Now, my issue is that the first two works but the last location directive doesnt. Can someone please enlighten me why?

Thank you in advance!



Edited 1 time(s). Last edit at 10/02/2014 01:07PM by alexbon.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 124
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready