Search code examples
phpwordpress

How to reset Wordpress - Settings - General page, so the website can use HTTP only?


Explaination

In Wordpress - Settings - General, I have edited the
WordPress Address and Site URL

to use HTTPS instead of HTTP without previously installing a SSL certificate. The hosting provider (grape.ca) does not seem to permit LetsEncrypt certificates to be installed, neither phpMyAdmin to be accessed.

Through the wp-config.php, I have manually done a forced http redirect with the following command:

define('FORCE_SSL_ADMIN', false);

Now the admin dashboard opens up, but when i go to the Wordpress - Settings - General page, it loops forever and does not open.

Question In which file are the settings page saved? How can i reset them to HTTP only?


Solution

  • The setting is stored in the wp_options table in the connected database. You can change it by logging into phpmyadmin and navigating to the table and then edit the field siteurl. See here for more details.

    Instead you can add these two lines to your wp-config file:

    define( 'WP_HOME', 'http://yoursiteurl.com' );
    define( 'WP_SITEURL', 'http://yoursiteurl.com' );
    

    See here for more details.