A
A
Arman2018-07-06 14:59:00
htaccess
Arman, 2018-07-06 14:59:00

Why does the redirect with the last dot of the domain not work?

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^(.+)\.$
    RewriteRule ^ https://%1%{REQUEST_URI} [R=301,L]
</IfModule>

Purpose: redirect site.tld . on site.tld
From the nuances: nginx is ahead, but it doesn’t seem to have much effect and the rules www.site.tld -> site.tld, http->https work

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktor Taran, 2018-07-06
@Arik

where are you going to put it away?
And it's not indexed

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question