Redirecting all requests to index.php without direct access
snippet in htaccess

Redirecting all requests to index.php without direct access

user6795

RewriteCond %{THE_REQUEST} /index\.php [NC]
RewriteRule ^(.*?)index\.php$ /$1 [L,R=301,NC,NE]