Μετάβαση στο κύριο περιεχόμενο

How can I redirect http to https on a Windows plan? - Γνωσιακή βάση / SSL / Μετά την εγκατάσταση - TopHost

How can I redirect http to https on a Windows plan?

Λίστα συντακτών

If you have a Windows hosting plan and you wish to redirect it from http to https, create a web.config file and add the following command:

 

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

<configuration>

<system.webServer>

<rewrite>

<rules>

<clear />

<rule name="Redirect all requests to https" stopProcessing="true">

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

<conditions logicalGrouping="MatchAll">

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

</conditions>

<action

type="Redirect" url="https://{HTTP_HOST}{ REQUEST_URI}"

redirectType="Permanent" appendQueryString="false" />

</rule>

</rules>

</rewrite>

</system.webServer>

</configuration>

 

 

Save it and upload it to your root folder.

Note: If there’s already a web.config file on the server, open it with an editor, add the above command and save it.

Βοηθητικό Δεν βοηθάει

0 από 1 χρήστες πιστεύουν ότι αυτή η σελίδα βοηθάει