I am creating php front controller. this is my .htaccess
file.
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule (.*) controller.php [L]
</IfModule>
This code redirect all url to the controller.php
. I need to avoid redirect index.php
to the controller.php
. All other urls should redirect to the controller.php
.