K
K
khodos_dmitry2020-01-29 16:15:07
htaccess
khodos_dmitry, 2020-01-29 16:15:07

Why is the 301 redirect not happening?

Redirects only the main page.
htaccess:

RewriteEngine On
RewriteCond %{HTTPS} =off 
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [QSA,L]

RewriteCond %{HTTP_HOST} ^www\.kalkulyator\.life$ [NC]
RewriteRule ^(.*)$ https://kalku.ru/$1 [R=301,L]

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

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktor Taran, 2020-02-01
@shambler81

Which rule does not work for you 4 of them

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question