Dear all I have got the following code in my .htaccess in the folder localhost/demo/
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]
and the following line is active on httpd.config
LoadModule rewrite_module modules/mod_rewrite.so
still if I type localhost/demo/model I can still see and browse the sub directory. All I want is to redirect all URL to index.php. Can you help?
If I understand your problem correctly;
…means do not rewrite if the URL points to an existing directory. Remove it, and the rewrite should take effect and not let you browse the subdirectory.