Comment créer la redirection de http:// vers https://
BMPCreated with Sketch.BMPZIPCreated with Sketch.ZIPXLSCreated with Sketch.XLSTXTCreated with Sketch.TXTPPTCreated with Sketch.PPTPNGCreated with Sketch.PNGPDFCreated with Sketch.PDFJPGCreated with Sketch.JPGGIFCreated with Sketch.GIFDOCCreated with Sketch.DOC Error Created with Sketch.
question

Comment créer la redirection de http:// vers https://

Par
LudovicL11
Créé le 2019-05-09 14:30:35 (edited on 2024-09-04 11:42:54) dans Brèves de comptoir

Bonjour a tous je suis novice et j'ai un site ebergé chez OVH, ma question : comment créer la redirection de http:// vers https://
merci d'avabnce cdlt vicou


1 réponse ( Latest reply on 2019-05-09 14:38:54 Par
kyodev
)

Bonjour,

Ne connaissant pas votre offre, voici le guide générique Ovh :

https://docs.ovh.com/fr/hosting/passer-site-internet-https-ssl/

Cordialement AntoineB1

quelle offre d'hébergement? perso/pro/...

pourquoi poster dans [lab]security?

accessoirement tu auras plus propre avec
```text
RewriteEngine On

## http -> https
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L,NE,QSA]
```
rien à modifier

Les réponses sont actuellement désactivées pour cette question.