par
Kiwix » 02 sept. 2009, 00:01
Bonjour,
Je travail sous Mac OS X Leopard et j'utilise la suite MAMP (Mac Apache Mysql PHP) pour creer et gerer mes sites.
Recement j'ai entendu parler de l' URL rewriting, j'ai voulu essayer sur ma machine en local mais aucun resultats ...
Pour info dans mon httpd.conf j'ai :
LoadModule rewrite_module modules/mod_rewrite.so qui est activé.
et dans mon php_info(); :
mod_rewrite est dans la colonne Loaded Modules
Au root de mon site j'ai un dossier test qui est composer d'un fichier test.php et d'un fichier .htaccess
Mon fichier .htaccess qui comporte :
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^inconnu\.html$ /test/test.html [L]
Mon fichier test.html comporte :
<html>
<head>
<title>Test</title>
</head>
<body>
OK !
</body>
</html>
Et lorsque dans mon navigateur je tape l'adresse :
http://localhost:8888/url-rewriting/test/inconnu.html
J'ai le droit a :
Not Found
The requested URL /test/test.html was not found on this server.
SVP aidez moi !!
Configuration: Mac OS X
Firefox 3.0.13
MAMP