WordPress redirect all HTTPS to HTTP

前端 未结 5 1079
天涯浪人
天涯浪人 2020-12-03 16:46

We have a WordPress site, and used to have an SSL certificate. The site used to be all HTTPS, and now we don\'t need the SSL anymore so we let it expire.

We\'ve alre

5条回答
  •  青春惊慌失措
    2020-12-03 16:56

    This disables https completely

    
         
            RewriteEngine On
            RewriteCond %{HTTPS} off
        
    

    This leaves The HTTPS enabled and then uses server VARIABLES to redirect all pages to HTTP:

    
        
            RewriteEngine On
            RewriteCond %{HTTPS} on
            RewriteRule .* http://%{HTTP_HOST}%{REQUEST_URI}
        
    

    Hope this helps you....

提交回复
热议问题