咨询热线:4008-888-888

网页设计

[求助] 关于全站https


本帖最后由 defilolerwp 于 2017-10-12 12:55 编辑

已经做好全站https了。



但是发现一个重大问题!!!



主题列表页贴子的伪静态地址、首页版块地址是http开头的



当点开之后,会被301跳转到https开头的动态地址,

怎么他们直接指向地址为https开头。

是否要修改模板???求具体解决方案。



下面是.htaccess文件的规则~~

=====================================================

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^topic-(.+)\.html$ portal.php?mod=topic&topic=$1&%1

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^article-([0-9]+)-([0-9]+)\.html$ portal.php?mod=view&aid=$1&page=$2&%1

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^forum-(\w+)-([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&page=$2&%1

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ forum.php?mod=viewthread&tid=$1&extra=page\%3D$3&page=$2&%1

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^group-([0-9]+)-([0-9]+)\.html$ forum.php?mod=group&fid=$1&page=$2&%1

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^space-(username|uid)-(.+)\.html$ home.php?mod=space&$1=$2&%1

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^blog-([0-9]+)-([0-9]+)\.html$ home.php?mod=space&uid=$1&do=blog&id=$2&%1

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^archiver/(fid|tid)-([0-9]+)\.html$ archiver/index.php?action=$1&value=$2&%1

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^tag-(.+)\.html$ misc.php?mod=tag&id=$1

RewriteCond %{QUERY_STRING} ^(.*)

$RewriteRule ^tag\.html$ misc.php?mod=tag

RewriteRule ^([a-z]+[a-z0-9_]*)-([a-z0-9_\-]+)\.html$ plugin.php?id=$12&%1





RewriteEngine On

RewriteCond %{HTTPS} !=on

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











江门设计咨询网