Bonjour,

J'ai ce fichier htaccess suivant pour rediriger la page siteweb.fr/index.php vers siteweb.fr:

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
Options +FollowSymlinks
RewriteEngine on
 
RewriteCond %{HTTP_HOST} ^siteweb.fr$
RewriteRule ^(.*) http://www.siteweb.fr/$1 [QSA,L,R=301]
RewriteCond %{HTTP_REFERER} !^http://siteweb.fr/.*$      [NC]
RewriteCond %{REQUEST_URI} /index.(htm|html|php)$
RewriteCond %{THE_REQUEST} /index.(htm|html|php)
RewriteRule ^(.*)index.(htm|html|php)$ /$1 [R=301,L]
Le problème c'est que siteweb.fr/index.html ou siteweb.fr/index.htm sont bien redirigées vers siteweb.fr mais pas siteweb.fr/index.php
Je cherche depuis pas mal de temps la solution mais je ne trouve pas.
Pourriez vous m'aider svp?