If I have an URL like this: http://localhost/sewacp/web/index.php
How can I eliminate /web/index.php so it'll be http://localhost/sewacp
?
I wrote .htaccess like this but it didn't work:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . web/index.php
Try below rule,