Bonjour,
J'ai ce code dans le fichier .htaccess à la racine de mon site
Or, si je tape le nom du site web suivi de index.html ou index.htm (siteweb.fr/index.html ou siteweb.fr/index.htm) ça fonctionne, par contre si je tape siteweb.fr/index.php alors ça ne fonctionne pas, index.php reste.
Je ne trouve pas d'ou cela peux venir, une idée peut être?
Merci
J'ai ce code dans le fichier .htaccess à la racine de mon site
Code:
RewriteEngine On
RewriteCond %{THE_REQUEST} ^(GET|POST|HEAD)\ (/.*)?/index.(htm|html|php|asp|shtml)
RewriteRule ^(.*)index.(htm|html|php|asp|shtml)$ /$1 [R=301,L]
Or, si je tape le nom du site web suivi de index.html ou index.htm (siteweb.fr/index.html ou siteweb.fr/index.htm) ça fonctionne, par contre si je tape siteweb.fr/index.php alors ça ne fonctionne pas, index.php reste.
Je ne trouve pas d'ou cela peux venir, une idée peut être?
Merci