Answer the question
In order to leave comments, you need to log in
Redirect Bitrix VM + Nginx. What is the problem?
Hello! There was a problem with setting up a redirect after migrating the Bitrix portal to a new domain: the redirect works from http to https of the new domain, but does not work from https://olddomain.ru to https://newdoman.com . If you add rewrite to both sections (http, https), then browsers give an error about a cyclic redirect. Please tell me the solution :)
The nginx configuration is as follows:
Answer the question
In order to leave comments, you need to log in
1. In nginx, the correct approach is through return
https://serversforhackers.com/c/redirect-http-to-h...
2. In BitrixVM, the nginx + apache bundle, so the redirect is still in .htaccess
Isn't it easier to set up a redirect from the old to the new one on the domain registrar?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question