Change WordPress back from https to http


WP-Admin is locked after switching to HTTPS, canceling when loading the website

If something goes wrong with WordPress from HTTP to HTTPS, because, for example, the SSL certificate and web server configuration is not consistent, you may need to switch back to HTTP for further action, but access to the WP admin is now blocked.


Remedy to change via phpMyAdmin in the SQL table wp_options and the field siteurl and home, with Edit is entered at option_value the desired URL.

The URL changed here corresponds to this one under Settings – Generally, wordpress address (URL) and website address (URL) is available.

You may need to edit the wp-config.php configuration file to disable SSL.

define('FORCE_SSL_ADMIN', true);

Set the value to false, or comment out the line with a hash.

define('FORCE_SSL_ADMIN', false);

Also, it may be important to note that if Apache RewriteRule HTTPS is enabled, it can be reset.

RewriteEngine on
RewriteRule - https://%-SERVER_NAME-%-REQUEST_URI [L,NE,R=permanent]

This could be in the .htaccess file, or in the web server configuration under VirtualHost of the appropriate domain.

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

Leave a Reply

Your email address will not be published. Required fields are marked *