Openshift重定向可湿性粉剂管理员到https [英] Openshift redirects wp-admin to https

查看:210
本文介绍了Openshift重定向可湿性粉剂管理员到https的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在中字preSS常规选项,我对 http://mywebsite.com 改字preSS目录的,但却字preSS仪表板仍然处于引起HTPPS混合内容警告,并在仪表盘的图像,即使停用混合内容过滤器的Firefox后不显示。

In general option in wordpress, I have changed the wordpress directory to be on http://mywebsite.com but wordpress dashboard is still in htpps causing mixed content warning and images in dashboard are not displayed even after disabling mixed content filter on firefox.

我这是我的的.htaccess 文件

Options +FollowSymlinks

<IfModule mod_rewrite.c>
    RewriteEngine On

    RewriteCond %{SERVER_PORT} ^443$
    RewriteRule ^(.*)$ http://%{HTTP_HOST}/$1 [R=301,L]

    # BEGIN WordPress
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    # END WordPress
</IfModule>

什么是可能的解决方案来克服这个问题。

What is the possible solution to overcome this problem.

推荐答案

。在你的wp-config.php文件,指示所有管理流量通过HTTPS的设置。您需要关闭该选项为你的管理面板才能正常工作。

There is a setting in your wp-config.php file that directs all admin traffic over https. You would need to disable that option for your admin panel to work correctly.

FORCE_SSL_ADMIN 必须是假的:

define('FORCE_SSL_ADMIN', false);

解决了这个问题。请参阅相关的字preSS codeX网页:

solves the issue. See relevant WordPress Codex pages:

  • <一个href="http://$c$cx.word$p$pss.org/Administration_Over_SSL">http://$c$cx.word$p$pss.org/Administration_Over_SSL
  • <一个href="http://$c$cx.word$p$pss.org/Function_Reference/force_ssl_admin">http://$c$cx.word$p$pss.org/Function_Reference/force_ssl_admin
  • http://codex.wordpress.org/Administration_Over_SSL
  • http://codex.wordpress.org/Function_Reference/force_ssl_admin

这篇关于Openshift重定向可湿性粉剂管理员到https的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆