WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] How to force HTTPS to HTTP

[Resolved] How to force HTTPS to HTTP

  • I’m trying to force my website redirect from HTTPS to HTTP.
    I have this code in my htacces

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

    And i already added the following pieces (none worked so far…)

    RewriteEngine On
         RewriteCond %{HTTPS} off
    RewriteCond %{HTTPS} on
         RewriteRule .* http://%{HTTP_HOST}%{REQUEST_URI}
    RewriteCond %{SERVER_PORT} ^443$
         RewriteRule (.*) http://www.example.com/$1 [R=301,L]

    Any ideas?

Viewing 4 replies - 1 through 4 (of 4 total)
  • try changing:
    RewriteRule .* http://%{HTTP_HOST}%{REQUEST_URI}
    to
    RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

    I have tried this, and https is still not redirecting to http.
    Any other ideas?

    Here is what I have:

    <IfModule mod_rewrite.c>
    Options +FollowSymlinks
    RewriteEngine On
    RewriteCond %{HTTPS} on
    RewriteRule .* http://%{HTTP_HOST}%{REQUEST_URI}
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index1.php [L]
    </IfModule>

    I have the same problem. It’s not redirecting from https to http. I have this:

    RewriteEngine On
    <IfModule mod_rewrite.c>
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    # END WordPress
    
    # force all URLs from https to http
    RewriteCond %{HTTP_HOST} !^$
    RewriteCond %{HTTP_HOST} !^blog\. [NC]
    RewriteCond %{HTTPS} off
    RewriteRule ^ https://blog.%{HTTP_HOST}%{REQUEST_URI} [R=301,L,NE]
    </IfModule>

    still not working…

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] How to force HTTPS to HTTP’ is closed to new replies.
Skip to toolbar