Answer the question
In order to leave comments, you need to log in
301 redirect from site.ru/ru/file.html to site.ru/file?
301 redirect from site.ru/ru/file.html to site.ru/file
I need to do it in one redirect, now I do it in two redirects:
RewriteRule ^ru/(.*)$ site.ru/$1 [L,R= 301]
RewriteRule ^(.*)/index\.html$ /$1/ [R=301,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