My site is resolving with both:
https://www.itcontractorsuk.com AND https://www.itcontractorsuk.com/index.php
What can I do so that the extra index.php doesn't show up in the URL. It's only happening with homepage.
My site is resolving with both:
https://www.itcontractorsuk.com AND https://www.itcontractorsuk.com/index.php
What can I do so that the extra index.php doesn't show up in the URL. It's only happening with homepage.
RewriteEngine On
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php
RewriteRule ^index\.php$ / [L,R=301]
Should do the trick.
Put this in your .htaccess