In my application I have my domain pointing to the index.php. I have a folder called "mod" and I want to redirect all the request from the "mod" folder to the index.php
Here is my rule in the sites-enabled conf file but it is not working, means I'm still able to access the files in the mod folder from url
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^mod/.* http://domain.com/ [R=301,L]
</IfModule>
Can someone tell me what is the issue here?