Bonjour,
j'ai un site web dynamique qui génère des pages en .html grace à l'Url rewriting et un fichier .htaccess.
Mon problème : j'aimerai que le .htaccess génère des .php : j'ai donc changer les .html en .php dans le .htaccess mais ca ne fonctionne pas. Pourtant ca marche si je change l'extension en .txt, .asp etc : en n'importe quoi sauf le .php.
Quelq'un pourrait-il m'aider ?
Voici mon .htaccess :
Je remercie la personne qui me répondra.
Cordialement,
Sabine.
j'ai un site web dynamique qui génère des pages en .html grace à l'Url rewriting et un fichier .htaccess.
Mon problème : j'aimerai que le .htaccess génère des .php : j'ai donc changer les .html en .php dans le .htaccess mais ca ne fonctionne pas. Pourtant ca marche si je change l'extension en .txt, .asp etc : en n'importe quoi sauf le .php.
Quelq'un pourrait-il m'aider ?
Voici mon .htaccess :
Code:
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^(top|news)\.html$ /$1.php [L]
RewriteRule ^(.*)-([0-9]+)\.html$ /categorie.php?categorie=$1&pageactuelle=$2 [L]
RewriteRule ^(.*)\.html$ /categorie.php?categorie=$1 [L]
Je remercie la personne qui me répondra.
Cordialement,
Sabine.