zhcn 技术 如果 WordPress 被 WP Security 插件锁定,请禁用 SSL

如果 WordPress 被 WP Security 插件锁定,请禁用 SSL

周末,我们通过 Cloudflare 实施了 SSL,并将WP Security 插件配置为在前端和管理仪表板上使用 SSL。

wp-安全-ssl-设置
wp-安全-ssl-设置
wp-安全-ssl-设置

一切都很好,直到我决定暂时禁用 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

就是这样。

尝试访问您的管理仪表板。应该没有问题。

如果 WordPress 被 WP Security 插件锁定,请禁用 SSL
如果 WordPress 被 WP Security 插件锁定,请禁用 SSL

周末,我们通过 Cloudflare 实施了 SSL,并将WP Security 插件配置为在前端和管理仪表板上使用 SSL。

wp-安全-ssl-设置
wp-安全-ssl-设置
wp-安全-ssl-设置

一切都很好,直到我决定暂时禁用 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

就是这样。

尝试访问您的管理仪表板。应该没有问题。

如果 WordPress 被 WP Security 插件锁定,请禁用 SSL
如果 WordPress 被 WP Security 插件锁定,请禁用 SSL