Setting Up web.config for an https redirect (SSL)

The following code needs to be added to the site's web.config file to force the site to render in https after installing the SSL.

<rulename="Force WWW and SSL"enabled="true"stopProcessing="true">

<matchurl="(.*)"/>

<conditionslogicalGrouping="MatchAny">

<addinput="{HTTP_HOST}"pattern="^[^www]"/>

<addinput="{HTTPS}"pattern="off"/>

</conditions>

<actiontype="Redirect"url="https://www.partsshuttle.com/{R:1}"appendQueryString="true"redirectType="Permanent"/>

</rule>
Bu cavab sizə kömək etdi? 0 istifadəçi bunu faydalı hesab edir (0 səs)