E
E
estat1k2020-01-15 12:14:48
Nginx
estat1k, 2020-01-15 12:14:48

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

1 answer(s)
B
Boris Korobkov, 2020-01-15
@BorisKorobkov

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 question

Ask a Question

731 491 924 answers to any question