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.

Solution

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.

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

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

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

Leave a Reply

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