Answer the question
In order to leave comments, you need to log in
Redirect from subdomain page to nginx domain page?
Good afternoon!
I can’t find an example of solving my problem anywhere...
I need to redirect to the domain page from a certain page of all subdomains...
if ($host = 'https://*.test.ru/test' ) {
rewrite ^/(.*)$ https://test.ru/test permanent;
}
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