How to hide index.php from domain url

This can be achieved by configuring rules in htaccess.

RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
RewriteRule ^index\.php$ http://domain/$1 [R=301,L]

Where 'domain' is the domain name.

 

Leave a Reply

Your email address will not be published. Required fields are marked *