»ª·áÈí¼þ

»¥ÁªÍøÈí¼þ×ÊÔ´¹²Ïí

µ±Ç°Î»ÖãºÊ×Ò³ -> ×ÛºÏƵµÀ -> Õ¾³¤Ö®¼Ò

IIS7 IIS8 ×Ô¶¯Ìøתµ½HTTPS

IIS7ÐèÒªÏÈÈ·ÈÏÊÇ·ñ°²×° ¡°URL REWRITE2 ¡± α¾²Ì¬Ä£¿é , Èç¹ûÄúÒѾ­°²×°¿ÉÒÔÌø¹ý


URL REWIRTE £¨Î±¾²Ì¬Ä£¿é£©

ÏÂÔصØÖ· £º http://www.iis.net/downloads/microsoft/url-rewrite


µÚÒ»²½£º Ñ¡ÔñÕ¾µã£¬  ¡°URL ÖØд¡±,Èç¹û°²×°µÄÊÇÓ¢ÎÄ°æµÄ Ó¦¸ÃÊÇ¡¾Url rewrite¡¿



µÚ¶þ²½£º Ìí¼Ó ¡° ¿Õ°×¹æÔò¡±


µÚÈý²½£ºÌí¼Ó¹æÔò

Ãû³Æ £º HTTPS

Æ¥ÅäURL ģʽ£º (.*)

Ìí¼ÓÌõ¼þ£º    Ìõ¼þ£º {HTTPS}  Ä£Ê½: off

²Ù×÷ÀàÐÍÑ¡Ôñ£ºÖض¨Ïò

Öض¨ÏòURL£º https://{HTTP_HOST}/{R:1}

È»ºó±£´æ¼´¿É


¸ß¼¶°æ£¨Ö±½Ó°Ñα¾²Ì¬Ìí¼Óµ½web.config£©

<?@xml version="1.0" encoding="UTF-8"?>

<configuration>

<system.webServer>

<rewrite>

<rules>

<rule name="HTTP to HTTPS redirect" stopProcessing="true">

<match url="(.*)" />

<conditions>

<add input="{HTTPS}" pattern="off" ignoreCase="true" />

</conditions>

<action type="Redirect" redirectType="Found" url="https://{HTTP_HOST}/{R:1}" />

</rule>

</rules>

</rewrite>

</system.webServer>

</configuration>



ÉÏһƪ£ºiis8.0 httpsÅäÖý̳Ì
ÏÂһƪ£ºIIS7 ¶àÓòÃû°ó¶¨Í¬Ò»ÎïÀíĿ¼²»Í¬..

ÆÀÂÛ

ÕÊ¡¡¡¡ºÅ: ÃÜÂë: (ÐÂÓû§×¢²á)
Ñé Ö¤ Âë:
±í¡¡Çé:
ÄÚ¡¡¡¡ÈÝ:

Ê× Ò³   |   °æȨÉùÃ÷   |   ¹ØÓÚÎÒÃÇ   |   ¹ã¸æ·þÎñ   |   ÁªÏµÎÒÃÇ   |   ÊÖ»ú°æ    |   ÍøÕ¾µØͼ
Copyright@zhuchunyu.com all rights reserved
Powered by zhuchunyu.com 2018-2025 zhuchunyu.com ÍîICP±¸05011767ºÅ-23