Answer the question
In order to leave comments, you need to log in
Analogue of a redirect for NGINX?
Hello, we have moved from Apache to Nginx. Previously, we had such a redirect. Those. if only the main page of the site (root) was requested, then there was a default redirect to /en/
RewriteEngine On
RewriteBase /en/
RewriteCond %{REQUEST_URI} ^/$
RewriteRule .* https://domain/en/$1 [L]
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