Stop WordPress from using HTTPS and just use HTTP

There are 2 things you must do.

If you are using Apache server go to .htaccess and change the Rewrite and RewriteBase engine to

RewriteEngine On

RewriteCond %{SERVER_PORT} ^443$
RewriteRule ^(.*)$ http://%{HTTP_HOST}/$1 [R=301,L]

RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

If you are using Nginx something like this should work

server {
   listen 80 443;
   server_name example.com;
   # add ssl settings
   return 301 https://example.com$request_uri;
}

This would redirect the https to http

and go to the database through phpmyadmin or whatever you use
go to wp_options and find and change the siteurl and home values from https://example.com to http://example.com

Clean your cache and try again. It should work without problem.
If the site still asks for SSL check your wp-config.php file to see if it has this code

define('FORCE_SSL_ADMIN', true);

then change the ‘true’ to ‘false’

Hope this helps you.

Leave a Comment