cloudflare http跳转到https下的htaccess文件写法 发表于 2015-03-19 | 分类于 技术 | | 阅读次数: | 字数统计: 51 12345678RewriteEngine onRewriteCond %{THE_REQUEST} ^.*\/index\.html\ HTTP/RewriteRule ^(.*)index\.html$ /$1 [R=301,L]RewriteCond %{HTTP_HOST} !^www\.RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]# below is only for cloudflareRewriteCond %{HTTP:CF-Visitor} '"scheme":"http"'RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]