.redirection htaccess index.php d' /

Je voudrais masquer l'index.php page et de montrer le domaine.

Est-ce possible avec .htaccess?

RewriteRule ^index\.php/?$ /[L,R=301,NC]

Aussi essayé:

RewriteEngine On
RewriteBase /
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9} /index.php HTTP/
RewriteRule ^index.php$ http://example.com/[R=301,L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

index.php montre encore

InformationsquelleAutor Nikki Wilson | 2013-02-06