最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

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

matteradmin7PV0评论

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?

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?

Share Improve this question edited Nov 16, 2024 at 20:36 Fillo asked Nov 16, 2024 at 20:18 FilloFillo 2674 silver badges17 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 2

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' );
define( 'WP_SITEURL', 'http://yoursiteurl' );

See here for more details.

Post a comment

comment list (0)

  1. No comments so far