O
O
obscur2020-08-31 10:43:34
htaccess
obscur, 2020-08-31 10:43:34

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 question

Ask a Question

731 491 924 answers to any question