Apache redirect to another folder
<p>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</p>

<p>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</p>

<pre><code>&lt;IfModule mod_rewrite.c&gt;
    RewriteEngine On
    RewriteBase /
    RewriteRule ^mod/.* http://domain.com/ [R=301,L]
&lt;/IfModule&gt;
</code></pre>

<p>Can someone tell me what is the issue here?</p>