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

ExplainationIn Wordpress - Settings - General, I have edited theWordPress Address and Site URLto use

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.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745644288a4637876.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信