ErrorDocument 401 /Erreurs/erreur401.php
ErrorDocument 403 http://%{HTTP_HOST}/Erreurs/erreur403.php
ErrorDocument 404 http://%{HTTP_HOST}/Erreurs/erreur404.php
ErrorDocument 500 http://%{HTTP_HOST}/Erreurs/erreur500.php
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule login\.php https://%{HTTP_HOST}/login.php
RewriteCond %{HTTPS} off
RewriteRule outils_admin\.php https://%{HTTP_HOST}/outils_admin.php
RewriteCond %{HTTPS} off
RewriteRule modifier_mdp\.php https://%{HTTP_HOST}/modifier_mdp.php
RewriteCond %{HTTPS} off
RewriteRule editer_eleve\.php https://%{HTTP_HOST}/editer_eleve.php
RewriteCond %{HTTPS} on
RewriteCond %{REQUEST_URI} !^(.*)login.php$
RewriteCond %{REQUEST_URI} !^(.*)outils_admin.php$
RewriteCond %{REQUEST_URI} !^(.*)modifier_mdp.php$
RewriteCond %{REQUEST_URI} !^(.*)editer_eleve.php$
RewriteRule ^(.*)$ http://%{SERVER_NAME}/$1
Partager