Bon, j'ai l'impression qu'il y a un problème : Quand je renomme .htaccess en .htaccess_, le serveur fait quand même fonctionner l'url rewriting. Mon fichier de base c'est :
http://127.0.0.1/IMManager/contact.php et dans la barre d'adresse c'est :
http://127.0.0.1/IMManager/contact (sans le .php donc)
et donc quand je renomme le fichier ça marche quand même !
Mon fichier .htaccess :
Options +FollowSymLinks RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)\.htm(l)?$ /index.php
Quand je tape :
http://127.0.0.1/IMManager/ffgfg.htm
Ça me fait :
Not Found The requested URL /index.php was not found on this server.
mais si je tape :
http://127.0.0.1/IMManager/contact
Ça m'affiche bien la page contact.php, alors que rien n'est indiqué dans le fichier .htaccess
Et si je tape :
http://127.0.0.1/IMManager/liste,1,1
Ça me renvoie une erreur 404 :/