![]() |
mod_rewrite rules to prevent access to assets folder and contents? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: mod_rewrite rules to prevent access to assets folder and contents? (/showthread.php?tid=50656) |
mod_rewrite rules to prevent access to assets folder and contents? - El Forum - 04-03-2012 [eluser]Unknown[/eluser] Hello, I'm struggling with coming up with the correct .htaccess rules to prevent direct external access from the contents of my CI project assets folder (and subfolders). Any suggestions? regards, Bob mod_rewrite rules to prevent access to assets folder and contents? - El Forum - 04-03-2012 [eluser]csotelo[/eluser] check this... http://stackoverflow.com/questions/5252474/deny-access-to-all-subdirectories-using-apache2-server-configuration mod_rewrite rules to prevent access to assets folder and contents? - El Forum - 04-03-2012 [eluser]Unknown[/eluser] Thanks! After much thrashing around, I found that putting these lines in .htaccess at the root of my project did the trick: # prevent directory browsing Options All -Indexes # prevent folder listing IndexIgnore * http://perishablepress.com/stupid-htaccess-tricks/ -Bob |