Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Rewrite help

$
0
0
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!

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>