Bonjour,
Tout fonctionne correctement en http mais en https j'ai une erreur 404
mon fichier .htaccess
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?url=$1 [NC,L]
RewriteEngine on
RewriteCond %{HTTPS} !=on
RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_SCHEME} =http
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
et la suite de ton code...
voir : https://www.webrankinfo.com/dossiers/techniques/redirection-http-https
Pour une connexion en https, il faut mettre en oeuvre un certificat SSL.
Mais un certificat est délivré par un organisme d'authentification et ce certificat est attaché à un nom de domaine.
Pour en savoir plus : https://www.globalsign.fr/fr/centre-information-ssl/definition-certificat-ssl/
En d'autres termes, le certificat ne fonctionnera pas avec une IP ou localhost mais avec un nom de domaine.
@MacBee,
j'ai pas de roblème de certificat, mais un problème avec mod_rewrite d'apache ;)
a++