如何使用htaccess从URL隐藏文件夹?

I need to hide the "modules" folder from the url "www.domain.com/modules/demo/add.php" I have written the following htaccess code,

Options +FollowSymLinks -MultiViews
# Turn mod_rewrite on
RewriteEngine On
RewriteBase /

RewriteRule ^modules/(.*)$ /$1 [L,NC,R]

After using the same .htaccess code, I found 404 error. (you can check the demo @ http://crmdemoserver.com/modules/demo/add.php

Well you should think of it the other way around. Link this file only without the modules directory. In the .htaccess you can then simply do the following:

RewriteEngine on
RewriteBase /

RewriteRule ^demo/(.*)$ /modules/demo/$1 [L,QSA]

The .htaccess will be lying in the / directory.