Hello Julkien
Pour PlanetHoster, c'est un peu plus compliqué.
Il est inutile de commander un certificat car l'hébergeur s'en occupe.
le certificat est produit par
let's encrypt. comme pour OVH, il est donc gratuit.
Ci-dessous, le .htaccess à la racine du site (il faut
remplacer NDD par le nom de domaine par exemple : kwsphp.org).
Code PHP :
Pour copier le contenu exact du code,
Veuillez citer le message
<?php
#####!!!#####
-
AddDefaultCharset windows-1252
AddCharset windows-1252 .php
-
php_value default_charset "windows-1252"
-
RewriteEngine on
-
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
-
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName NDD
-
AddType video/mp4 .mp4 .m4v
AddType video/webm .webm
-
RewriteCond %{SERVER_PORT} ^80$ [OR]
RewriteCond %{HTTPS} =off
RewriteCond %{REQUEST_URI} !^/[0-9]+..+.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}.txt(?: Comodo DCV)?$
RewriteCond %{REQUEST_URI} !^/.well-known/acme-challenge/[0-9a-zA-Z_-]+$
RewriteRule ^(.*)$ https://www.NDD/$1 [R=301,L]
-
RewriteCond %{HTTP_HOST} ^NDD$ [NC]
RewriteCond %{REQUEST_URI} !^/[0-9]+..+.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}.txt(?: Comodo DCV)?$
RewriteCond %{REQUEST_URI} !^/.well-known/acme-challenge/[0-9a-zA-Z_-]+$
RewriteRule ^(.*)$ https://www.NDD/$1 [R=301,L]
-
#####!!!#####
?>