L
L
lexstile2017-10-16 18:45:31
Apache HTTP Server
lexstile, 2017-10-16 18:45:31

301 redirect from a domain with a dot at the end?

There is a domain: https://site.ru
The page got into the index: https://site.ru./
We need a redirect from https://site.ru./ to https://site.ru/
Tried:

RewriteCond %{HTTP_HOST} !^site\.ru$
RewriteRule ^(.*)$ https://site.ru/$1 [L,R=301]

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