A
A
Artyom2016-10-18 19:31:31
Apache HTTP Server
Artyom, 2016-10-18 19:31:31

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>

How to redirect a website to http?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Sisyukin, 2016-10-18
@Caarl

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...

I
Ivan, 2016-10-19
@IvanDanko

As an option - install an SSL certificate and the site will be on https))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question