demande d'aide

Nouveau WRInaute
Bonjour ,

Je suis allé sur le forum mais je ne suis pas formé , j'ai un page d'erreur à l'ouverture de mon site aprés avoir chargé les codes trouvé sur le forum.

pourriez vous me faire savoir qui peut corriger les lignes de mon htaccess cidessous:

Code:
SetEnv ZEND_OPTIMIZER 1
       SetEnv MAGIC_QUOTES 1
       SetEnv PHP_VER 5_3

       AddType text/x-component .htc
      
       RewriteEngine on
      
       RewriteEngine On

       RewriteCond %{SERVER_PORT} 80

RewriteCond %{HTTP_HOST}^HTTP://www.deco-boite-lettre.com [NC,OR]
RewriteCond %{HTTP_HOST}^HTTP://www.deco-boite-lettre.com [NC]
RewriteRule ^(.*)$https://www.deco-boite-lettre.com/$1">https://www.deco-boite-lettre.com/$1 [R=301,L]

       RewriteCond %{SCRIPT_FILENAME} !-f
       RewriteCond %{SCRIPT_FILENAME} !-d

       RewriteRule (.*) index.php

       Options -Indexes

Merci par avance


Cordialement


Christian
 
Dernière édition par un modérateur:
WRInaute accro
Il faut aller voir le log (error.log) de Apache.
Sinon commencer par virer le code trouvé sur le forum qui semble avoir été ajouté par dessus un autre (je parle des 3 lignes).
 
Dernière édition:
Nouveau WRInaute
bonjour spout,
J'ai enlevé les 3 lignes suivantes


RewriteCond %{HTTP_HOST}^HTTP://www.deco-boite-lettre.com [NC,OR]
RewriteCond %{HTTP_HOST}^HTTP://www.deco-boite-lettre.com [NC]
RewriteRule ^(.*)$https://www.deco-boite-lettre.com/$1">https://www.deco-boite-lettre.com/$1 [R=301,L]




cela me donne ce message;

Internal Server Error​

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at postmaster@www.deco-boite-lettre.com to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.
 
S
suppr334822
Guest
SetEnv ZEND_OPTIMIZER 1
SetEnv MAGIC_QUOTES 1
SetEnv PHP_VER 5_3

AddType text/x-component .htc

RewriteEngine On

# Redirige tous les accès HTTP vers HTTPS
RewriteCond %{SERVER_PORT} 80
RewriteCond %{HTTP_HOST} ^(www\.)?deco-boite-lettre\.com [NC]
RewriteRule ^(.*)$ https://www.deco-boite-lettre.com/$1 [R=301,L]

# Réécrit toutes les URL vers index.php, sauf pour les fichiers et dossiers existants
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule (.*) index.php

Options -Indexes
 
Discussions similaires
Haut