.htaccess方式
RewriteCond %{SERVER_PORT} !^80$
RewriteCond %{HTTP_USER_AGENT} !MSIE/[1-8]\. [NC]
RewriteCond %{HTTP_HOST} xxx.com
RewriteRule ^.*$ http://xxx.com%{REQUEST_URI} [L,R=301]
IIS web.config方式
<rewrite>
<rules>
<rule name="https to http" enabled="true" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{HTTPS}" pattern="^ON$" />
</conditions>
<action type="Redirect" url="http://{HTTP_HOST}/{R:1}" redirectType="Permanent" />
</rule>
</rules>
</rewrite>
IIS7配置web.config,http重定向到https的链接
http://fangzhanba.com/tech/fuwuqi/4046.html