> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.hodi.host/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Comment forcer mon site à s'afficher en HTTPS ?

Nous fournissons en standard des certificats SSL LetsEncrypt donc vous pouvez forcer la redirection HTTP vers HTTPS.

Avant cela, vérifiez que votre certificat SSL est bien généré en allant sur votre site en tapant `https://` devant son adresse. Si vous avez un problème de certificat SSL, vous pouvez consulter la question "[Comment forcer la regénération de mon certificat SSL ?](https://help.hodi.host/fr/article/comment-forcer-la-regeneration-de-mon-certificat-ssl-1c097jz/)".

* [Connectez-vous à votre cPanel](https://help.hodi.host/fr/article/comment-acceder-a-cpanel-tcucor/)
* Dans la section "**Domaines**", choisissez "**Domaines**"
* Cochez la case "**Forcer la redirection HTTPS**"
  ![](https://hodi.host/images/kb/105_Screenshot-2023-06-16-at-09.07.57.png)

> **Attention :** cPanel modifie le fichier .htaccess pour activer la redirection, donc veillez à ne pas l'écraser, faute de quoi la redirection cesserait de fonctionner. Il se peut aussi que votre CMS ou votre fichier .htaccess actuel bloque cette modification.
>  
> Dans ce cas, vous pouvez mettre les lignes suivantes en haut de votre fichier .htaccess :
>  
> RewriteEngine On
> RewriteCond %{HTTPS} !=on
> RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]