个性化阅读
专注于IT技术分析

如果使用WP安全插件将WordPress锁定,则禁用SSL

整个周末, 我通过Cloud Flare实施了SSL, 并配置了WP Security插件以在前端和管理控制台中使用SSL。

wp-security-ssl-settings

在我决定暂时禁用WP Security插件以解决Thrive Leads问题之前, 一切正常。我的WordPress管理仪表板被锁定, 并显示”重定向查找”错误。

前端也有问题, 但是我可以通过删除HTTP到https重定向使我的网站正常运行。但这不适用于管理控制台。

如果你遇到类似的情况, 请不要担心, 这是解决此问题的方法。

与往常一样, 不要忘记备份现有配置, 你将很快对其进行修改。

  • 登录到你的服务器(如果你在共享主机上, 那么它将是你的cPanel)
  • 转到htdocs或WordPress网站的根目录
  • 编辑wp-config.php
  • 你会注意到以下两行, 其中SSL定义为true
// iThemes Security Config Details: 2
define( 'FORCE_SSL_LOGIN', true ); // Force SSL for Dashboard - Security > Settings > Secure Socket Layers (SSL) > SSL for Dashboard
define( 'FORCE_SSL_ADMIN', true ); // Force SSL for Dashboard - Security > Settings > Secure Socket Layers (SSL) > SSL for Dashboard
// END iThemes Security - Do not modify or remove this line
  • 将true更改为false, 因此应如下所示。
// iThemes Security Config Details: 2
define( 'FORCE_SSL_LOGIN', false ); // Force SSL for Dashboard - Security > Settings > Secure Socket Layers (SSL) > SSL for Dashboard
define( 'FORCE_SSL_ADMIN', false ); // Force SSL for Dashboard - Security > Settings > Secure Socket Layers (SSL) > SSL for Dashboard
// END iThemes Security - Do not modify or remove this line

就这样。尝试访问你的管理信息中心, 应该没问题。

赞(0)
未经允许不得转载:srcmini » 如果使用WP安全插件将WordPress锁定,则禁用SSL

评论 抢沙发

评论前必须登录!