1

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.

Smit Shah
  • 11
  • 3

1 Answers1

2
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

Sunny R Gupta
  • 5,026
  • 1
  • 31
  • 40