Answer the question
In order to leave comments, you need to log in
How to change URL in nginx?
On the site, the page is located at:
https://domain.ru/catalog/good.html - URL of the detailed product page
https://domain.ru/catalog/name/ - URL of the catalog page
I need the user and the search engine instead of catalog saw the product (i.e. https://domain.ru/product/good.htm .
In this case, the catalog page should open at the link https://domain.ru/catalog/name/
Answer the question
In order to leave comments, you need to log in
location /product {
rewrite ^/product/(.*) /catalog/$1 break;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question