salut!

je m'intéresse à ce sujet, j'ai déjà lu pas mal de choses, mais juste pour être sûr.............

un exemple bateau: un site "toto"
toto\index.php
toto\toto-page1.php
toto\toto-page2.php
toto\toto-page3.php
toto\toto-page4.php
toto\toto-page5.php

mon but:
-> voir s'afficher uniquement www.toto.com, quelque soit la page demandée (toto-page2.php, toto-page5.php) via mon menu
-> voir s'afficher 404.php si on tape l'adresse d'une page inexistante

htaccess:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
Options FollowSymLinks
ErrorDocument 404 /404.php
RewriteEngine on
RewriteRule ^(toto-*).php http://www.toto.com/ [L]
j'ai bon??