K
K
konyaev2017-08-19 10:42:39
htaccess
konyaev, 2017-08-19 10:42:39

How to set up a redirect to https in WordPress?

Current broken .htaccess
# BEGIN WordPress
RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
RewriteBase /
RewriteRule ^index\. php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress
The site itself teamprospect.ru

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
konyaev, 2017-08-20
@konyaev

The problem was caused by unknown problems on reg.ru hosting, due to which .htaccess did not work at all for more than a day

S
Sanes, 2017-08-19
@Sanes

https://wordpress.org/plugins/really-simple-ssl/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question