Re: map with preserving the URL

2019-04-08 Thread Francis Daly
On Tue, Apr 02, 2019 at 05:00:19AM -0400, DieterK wrote: Hi there, > I'm trying to make the URLs on my site more "friendly" with map, but I don't > understand the right way. > location / { > if ($new) { > rewrite ^ $new redirect; "redirect" there means "send a http redirect to the client

map with preserving the URL

2019-04-02 Thread DieterK
Hello, I'm trying to make the URLs on my site more "friendly" with map, but I don't understand the right way. My config looks like this: = map $uri_lowercase $new { include /foobar/rewriterules.map; } server { listen 443 ssl; [...] location / { if ($new) { rewrite ^ $ne