【发布时间】:2014-05-06 07:03:10
【问题描述】:
在 wordpress 的常规选项中,我已将 wordpress 目录更改为 http://mywebsite.com,但 wordpress 仪表板仍在 html 中,导致混合内容警告,即使在 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>
有什么办法可以解决这个问题。
【问题讨论】:
-
更改您的 WP 永久链接设置也将 URL 设为
http:// -
它已经设置为 http:// 而不是 https:// 但仪表板仍在 https://
-
使用新的浏览器测试。
标签: php wordpress .htaccess openshift