Answer the question
In order to leave comments, you need to log in
Nginx how to gracefully write 300 redirects?
Good day to all.
I had a problem on a seemingly simple task. I have about 300 redirects in the blog section of the form:
/blog?page=post&blog=blog_EN&id=298 /blog/topic1-theme-for-russian-speakers/
/blog?page=post&blog=blog_RU&id=300 /blog/webinar-new-staff/
map $args $link {
"blog?page=post&blog=blog_EN&id=300" "/blog/webinar-new-staff/";
....
default "/blog/";
}
if ($args) {
return 301 $scheme://$host$link;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question