500 Internal Server Error

Bonjour,

J'ai créé un ficher .htaccess pour cacher les extentions et palcé sur le dossier root. j'ai créé un dossier test et dedans j'ai créé un ficher s'appelle index.php.

j'essaie d'executer le script "index.php"....

je trouve "500 internal server error"

.htaccess
RewriteEngine On
RewriteCond %{REQUESTFILENAME} !-f
RewriteCond %{REQUESTFILENAME} !-d
RewriteRule ^(.*)$ $1.php [L]
----
www/test/index.php
<?php
print 'Hello world';
?>

je ne comprend pas d'où l'erreur se produit....

j'ai besoin vos aides svp....

cordialement
olikhvar
--

4 réponses

  1. Bonjour,
    tu as une erreur dans ton fichier .htaccess.

    essaies comme ça (j'ai rajouter les _) :
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ $1.php [L]
    1. merci super. erreur est parti. mille merci

      maintenant il cache pas l'extension.....

      url comme "http://localhost/test/index.php"...

      affiche l'extension aussi.... index.php

      comment a cacher?
      --