Answer the question
In order to leave comments, you need to log in
How to redirect from a site subdirectory to a subdomain of the same site in Nginx?
Hello comrades. Need urgent help. How to make a redirect from all site categories to the same subdomains of the same site in Nginx? Example: We have a site phone.ru. It has a samsung category Example: phone.ru/ samsung /index.php you need to redirect to a subdomain to get samsung .phone.ru/index.php .
Answer the question
In order to leave comments, you need to log in
RTFM nginx.org/en/docs/http/ngx_http_rewrite_module.htm... (similar to "/download" example)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question