Force HTTPS protocol from the web.config file

Procédure

Definition

Following the activation of an SSL certificate on a domain name, it may be necessary to force the use of the https protocol, so that an Internet user is automatically redirected to a secure URL.

How do I force the use of the https protocol via the web.config file?

You need to modify the contents of the web.config file and add the following code:


    
         
             
             
                
             
        
         
    

Note :

  • You must place the content of this code just before
  • If the / sections are already present in the web.config file, add the following content without the tags ... rules> rewrite> tags in the existing section.

Rate this article :

This article was useful to you ?

Article utileYes

Article non utileNo

MerciMerci ! N'hésitez pas à poser des questions sur nos documentations si vous souhaitez plus d'informations et nous aider à les améliorer.


Vous avez noté 0 étoile(s)

Similar articles

0mn reading

How do I create an FTP user in Plesk?

0mn reading

How do I change the FTP password in Plesk?

13mn reading

How do I install a CMS from Plesk?

0mn reading

FTP connection problem: Error 530 User cannot log


Questions sur cet article

Ask the LWS team and its community a question

RGPD : Responsable LWS-Ligne Web Services. Finalité : modération et publication publique de votre question, notification éventuelle d'une réponse. Base légale : consentement (art. 6.1.a RGPD). Conservation des emails : 90 jours après notification, 12 mois maximum sans réponse. Vous pouvez exercer vos droits via notre nos CGV - section RGPD.