Answer the question
In order to leave comments, you need to log in
How to do htaccess correctly?
there is a multilingual script, but there the links are obtained like:
domain.ru/index.php?lang=en
domain.ru/index.php?lang=hi
domain.ru/index.php?lang=de
how can I get
domain links in the output .ru/en
domain.ru/hi
domain.ru/de
Answer the question
In order to leave comments, you need to log in
You have a get parameter and it redirects like this
RewriteCond %{QUERY_STRING} (^|&)lang\=en($|&)
RewriteRule ^index\.php$ /en? [L,R=301]
RewriteCond %{QUERY_STRING} (^|&)lang\=(.+)($|&)
RewriteRule ^index\.php$ /%2? [L,R=301]
RewriteCond %{QUERY_STRING} lang\=(.+)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question