Answer the question
In order to leave comments, you need to log in
How to redirect a website to http?
Craftsmen in the settings of the wordpress admin panel -> permalinks instead of http:// wrote https:// . And now the site refuses to work and all requests go to https . I tried to disable and redirect the site in .htaccess . But the redirect is still https
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{ENV:HTTPS} !=off
RewriteRule ^.*$ http://%{SERVER_NAME}%{REQUEST_URI} [R,L]
# BEGIN WordPress
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
Answer the question
In order to leave comments, you need to log in
RewriteEngine on
RewriteCond %{HTTP_HOST} ^example.com [NC]
RewriteRule ^(.*)$ https://www.example.com$1 [L]
RewriteCond %{SERVER_PORT} ^443$
RewriteRule .* http://% {SERVER_NAME}%{REQUEST_URI} [R,L]
Look in the php code, they could do something there...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question