Answer the question
In order to leave comments, you need to log in
How to configure CNC in Nginx?
Good day to all. Tell me how to set up a redirect so that when site.ru/news goes news.html. I've tried so many things, nothing works. Thanks in advance.
location / {
try_files $uri $uri/index.html $uri/ =404;
}
Answer the question
In order to leave comments, you need to log in
If for one url, then:
location =/news {
rewrite ^/news$ news.html;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question