您好。https跳转问题

问:您好,我的站点http://www.xufanfan.com/ 做了ssl安全证书,

也已经全部设置好但是有个问题我设置了301,好像有问题,没有自动跳转到https://
并且,访问https://www.xufanfan.com/css样式加载不上,访问http://www.xufanfan.com/ css正常,您好。https跳转问题

答:您好,您是iis7的环境,要用iis7的规则添加到web.config文件才可以,已经帮您添加了。现在跳转正常。

https访问不显示样式是因为您的内部都是调用的http,您是wordpress程序,https://www.west.cn/faq/list.asp?unid=2068  请注意参考此说明调整,非常感谢您长期对我司的支持!

问:您好!请问Linux虚拟主机想用.htaccess文件把https 301 跳转到 http,请问用什么代码?

不想用https了。

答:您好,您可尝试下面的规则添加后试试,非常感谢您长期对我司的支持!

<IfModule mod_rewrite.c>RewriteEngine onRewriteCond %{SERVER_PORT} =443RewriteCond %{HTTP_HOST} ^www.您的域名.com$ [NC]RewriteRule ^(.*)$ http://www.您的域名.com/$1 [L,R=301]</IfModule>

问:部署ssl后 设置301跳转将http跳转到https,但网页打不开 

httpd.conf文件:
RegistrationName= wlqcwinRegistrationCode= 2EAD-35GH-66NN-ZYBA
[ISAPI_Rewrite]# 3600 = 1 hour CacheClockRate 3600RepeatLimit 32
#默认包含了301设置,此设置情况下cctv.com/aa.htm 会301跳至www.cctv.com/aa.htm,将cctv.com替换为您自己的域名就能实现自己的域名的301RewriteCond %{HTTP:Host} ^yocoojj.com$ [OR]RewriteCond %{HTTP:Host} ^yocooware.com$ [OR]RewriteCond %{HTTP:Host} ^ycjj.gotoip4.com$RewriteRule (.*) https://www.yocoojj.com$1 [NC,R=301]

#如果你的网站是discuz!x就把以下几行前面的#号删除,然后把duoduo 淘宝客 以下的规则全部删除,二者有冲途!RewriteCond %{QUERY_STRING} ^(.*)$RewriteRule ^topic-(. )\\.html$ portal.php?mod=topic&topic=$1&%1RewriteCond %{QUERY_STRING} ^(.*)$RewriteRule ^article-([0-9] )-([0-9] )\\.html$ portal.php?mod=view&aid=$1&page=$2&%1RewriteCond %{QUERY_STRING} ^(.*)$RewriteRule ^forum-(\\w )-([0-9] )\\.html$ forum.php?mod=forumdisplay&fid=$1&page=$2&%1RewriteCond %{QUERY_STRING} ^(.*)$RewriteRule ^thread-([0-9] )-([0-9] )-([0-9] )\\.html$ forum.php?mod=viewthread&tid=$1&extra=page\\=$3&page=$2&%1RewriteCond %{QUERY_STRING} ^(.*)$RewriteRule ^group-([0-9] )-([0-9] )\\.html$ forum.php?mod=group&fid=$1&page=$2&%1RewriteCond %{QUERY_STRING} ^(.*)$RewriteRule ^space-(username|uid)-(. )\\.html$ home.php?mod=space&$1=$2&%1RewriteCond %{QUERY_STRING} ^(.*)$RewriteRule ^blog-([0-9] )-([0-9] )\\.html$ home.php?mod=space&uid=$1&do=blog&id=$2&%1RewriteCond %{QUERY_STRING} ^(.*)$RewriteRule ^archiver/(fid|tid)-([0-9] )\\.html$ archiver/index.php?action=$1&value=$2&%1RewriteCond %{QUERY_STRING} ^(.*)$RewriteRule ^([a-z] [a-z0-9_]*)-([a-z0-9_\\-] )\\.html$ plugin.php?id=$1:$2&%1

# duoduo 淘宝客 Rewrite规则##RewriteRule ^/index\\.html$ /index\\.php#RewriteRule ^/sitemap\\.html$ /sitemap\\.php#RewriteRule ^/malllist\\.html$ /malllist\\.php#RewriteRule ^/shoplist\\.html$ /shoplist\\.php#RewriteRule ^/article\\.html$ /article\\.php#RewriteRule ^/user/center\\.html$ /user/center\\.php#RewriteRule ^/mall-(.*)-(.*)-(.*)\\.html$ /mall\\.php\\?id=$1&act=$2&page=$3#RewriteRule ^/mall-(.*)-(.*)\\.html$ /mall\\.php\\?id=$1&act=$2#RewriteRule ^/mall-(.*)\\.html$ /mall\\.php\\?id=$1#RewriteRule ^/view-(.*)-(.*)\\.html$ /view\\.php\\?iid=$1&page=$2#RewriteRule ^/view-(.*)\\.html$ /view\\.php\\?iid=$1#RewriteRule ^/malllist-(.*)-(.*)-(.*)\\.html$ /malllist\\.php\\?catid=$1&mall=$2&page=$3#RewriteRule ^/article_list-(.*)-(.*)\\.html$ /article_list\\.php\\?cid=$1&page=$2#RewriteRule ^/article_list-(.*)\\.html$ /article_list\\.php\\?cid=$1#RewriteRule ^/read-(.*)\\.html$ /read\\.php\\?id=$1#RewriteRule ^/list-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)\\.html$ /list\\.php\\?cid=$1&start_price=$2&end_price=$3&sort=$4&area=$5&guarantee=$6&list=$7&q=$8&page=$9#RewriteRule ^/shop-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)\\.html$ /shop\\.php\\?nick=$1&start_price=$2&end_price=$3&sort=$4&area=$5&guarantee=$6&list=$7&q=$8&page=$9 [NU]#RewriteRule ^/shoplist-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)\\.html$ /shoplist\\.php\\?cid=$1&keyword=$2&start_level=$3&end_level=$4&area=$5&px=$6&cpr=$7&type=$8&page=$9 [NU]#RewriteRule ^/shoplist-(.*)\\.html$ /shoplist\\.php\\?cid=$1#RewriteRule ^/shop-(.*)\\.html$ /shop\\.php\\?nick=$1 [NU]#RewriteRule ^/list-(.*)\\.html$ /list\\.php\\?cid=$1#RewriteRule ^/list\\.html$ /list\\.php#RewriteRule ^/huangou-(.*)\\.html$ /huangou\\.php\\?id=$1#RewriteRule ^/huan-(.*)-(.*)\\.html$ /huan\\.php\\?keyword=$1&page=$2 [NU]#RewriteRule ^/huan\\.html$ /huan\\.php#RewriteRule ^/coupons-(.*)-(.*)\\.html$ /coupons\\.php\\?cid=$1&page=$2#RewriteRule ^/coupons\\.html$ /coupons\\.php#RewriteRule ^/cuxiao-(.*)\\.html$ /cuxiao\\.php\\?id=$1#RewriteRule ^/tg-(.*)-(.*)-(.*)-(.*)-(.*)\\.html$ /tg\\.php\\?city_id=$1&catid=$2&mallid=$3&keyword=$4&page=$5 [NU]#RewriteRule ^/tg-(.*)-(.*)-(.*)-(.*)\\.html$ /tg\\.php\\?city_id=$1&catid=$2&mallid=$3&page=$4#RewriteRule ^/tg-(.*)-(.*)-(.*)\\.html$ /tg\\.php\\?city_id=$1&catid=$2&mallid=$3#RewriteRule ^/tg-(.*)\\.html$ /tg\\.php\\?city_id=$1#RewriteRule ^/tg\\.html$ /tg\\.php#RewriteRule ^/tgview-(.*)\\.html$ /tgview\\.php\\?id=$1

答:您好,

不太清楚您是否已经做了调整,现在站点已经是可以正常访问的了。请测试核实一下,非常感谢您对我司的支持,谢谢!

问:我这边还是不能打开,我试了手机浏览器也不能打开

答:您好,已经处理了,检查是域名解析的原因,请过10分钟后再访问测试一下,非常感谢您长期对我司的支持!

更多关于云服务器域名注册虚拟主机的问题,请访问西部数码官网:www.west.cn
赞(0)
声明:本网站发布的内容(图片、视频和文字)以原创、转载和分享网络内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-62778877-8306;邮箱:fanjiao@west.cn。本站原创内容未经允许不得转载,或转载时需注明出处:西部数码知识库 » 您好。https跳转问题

登录

找回密码

注册