Trippy Trippy - 1 year ago 72
Apache Configuration Question

Why this simple htaccess rule does not work

Hi guys i did a rule :

RewriteRule ^actualite/ actualite.php [L,NC]

but i want to have this website/actualites/ it doesn't work.. and works only website/actualite/

Why this rule doesn't work ?
RewriteRule ^actualites/ actualite.php [L,NC]

Thx for your help

Answer Source

Try this rule with MultiViews turned off and optional s after actualites:

Options -MultiViews
RewriteEngine On

RewriteRule ^actualites?/ actualite.php [L,NC]