Saturday, 14 September 2013

Codeigniter .htaccess: Give public access to all files but not the folder

Codeigniter .htaccess: Give public access to all files but not the folder

my file format like
application
- controllers
- views etc...
assetes
- Images
- Css etc...
and my .htaccess file are below:
#Deny from all
RewriteEngine on
RewriteCond $1 !^(index\.php|assets|robots\.txt)
RewriteRule ^(.*)$ index.php/$1 [L]
My probleb is that assets folder access to every one any user veiw all
images and all css file but needed is only user access file not the access
entire folder
please help me thanks!

No comments:

Post a Comment