I'm trying to remove index.php from my subfolder url. so if anyone access www.mysite.com/sub-folder/index.php i want the url to redirect to www.mysite.com/sub-folder/. I've added the following htaccess file in sub-folder, but its not working.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /sub-folder/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /sub-folder/index.php [L]
</IfModule>
Can anyone help me with this? Thanks