A
A
an32016-04-03 23:07:23
Nginx
an3, 2016-04-03 23:07:23

How to set up a redirect in nginx but not redirect when requesting /blogs/?

Need to set up a redirect in nginx but not redirect when requesting /blogs/?
there is a solution like this if ($uri ~ /blog/) {
set $mobile_rewrite do_not_perform;
}
but returns a blank page...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey, 2016-04-03
@an3

Isn't it easier to create a location /blog/ where you don't use a redirect? It will be simple and clear.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question