https问题

创建时间:2019-11-07 11:00发布者:招投标资质网点击数:1335
香港虚拟主机,linux php7.0,mysql5.5
部署ssl,然后301重定向
网站访问乱码
css/js文件还是http,清理缓存没用
<script src="http://www.xxx.com/theme/default/js/jquery.easing.js"></script>
<script src="http://www.xxx.com/theme/default/js/jquery.superslide.2.1.2.js"></script>
<script src="http://www.xxx.com/theme/default/js/jquery.fancybox-1.3.4.js"></script>
<script src="http://www.xxx.com/theme/default/js/common.js"></script>


重定向:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP:From-Https} !^on$ [NC]
RewriteCond %{HTTP_HOST} ^(www.)?winnictech.com$ [NC]
RewriteRule ^(.*)$ https://www.winnictech.com/$1 [R=301,L]
</IfModule>
回答 我也遇到这个问题(0)
招投标资质网2019-11-07 11:04回答

https://www.xxx.com/include/route.php?route=about.html
https://www.xxx.com/include/route.php?route=product/winnic
有用(0) 没用(0)
招投标资质网2019-11-07 11:09回答
5.7.23 - MySQL Community Server (GPL)
PHP 版本: 7.2.7
有用(0) 没用(0)
招投标资质网2019-11-07 11:19回答
重定向不带www的到带www的,而且重定向http的到https的,是否是这个原因导致的css和js等文件路径无法自动更改为https?
有用(0) 没用(0)
招投标资质网2019-11-07 11:34回答
后台https访问正常,但是自定义导航栏那里 也是http而不是https
有用(0) 没用(0)
招投标资质网2019-11-07 12:44回答
每个页面加了这句后显示正常了,但是页面的链接和css/js文件还是http的
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests" />

https://www.xxx.com/include/route.php?route=about.html
https://www.xxx.com/include/route.php?route=product/winnic

<script src="http://www.xxx.com/theme/default/js/jquery.easing.js"></script>
<script src="http://www.xxx.com/theme/default/js/jquery.superslide.2.1.2.js"></script>
<script src="http://www.xxx.com/theme/default/js/jquery.fancybox-1.3.4.js"></script>
<script src="http://www.xxx.com/theme/default/js/common.js"></script>
有用(0) 没用(0)
招投标资质网2019-11-07 03:28回答
PHP 版本:7.0.33
MySQL 版本:5.7.23
最大上传文件:20MGD
库支持:是
Zlib支持:是
时区设置:PRC
Socket 支持:是
服务器系统:Linux(127.0.0.1)
Web 服务器:Apache
有用(0) 没用(0)