Rescue Me Please: 403 access denied on my css & js files, possibly due to limited knowledge of .htaccess - 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: Rescue Me Please: 403 access denied on my css & js files, possibly due to limited knowledge of .htaccess (/showthread.php?tid=59910) |
Rescue Me Please: 403 access denied on my css & js files, possibly due to limited knowledge of .htaccess - El Forum - 12-09-2013 [eluser]die onsigbare[/eluser] Hi Guys, please help me. I have developed a website in CI, which works nicely on my local machine, but as soon as I push it to production, I experience problems with a 403 access denied error on my css & js files. I have googled and most results point me to the .htaccess file, I have tried editing the application/.htaccess , but I am not winning as most of the .htaccess examples do not seem to work in my application. My js & css files are under : http://example.com/application/default/views/default/lib/ - css = http://example.com/application/default/views/default/lib/css/ - js = http://example.com/application/default/views/default/lib/js/ God Bless Rescue Me Please: 403 access denied on my css & js files, possibly due to limited knowledge of .htaccess - El Forum - 12-09-2013 [eluser]die onsigbare[/eluser] Ooh well. Due to my limited knowledge, I was editing an incorrect .htaccess file. Stupidity is part of humanity. * IGNORE * Rescue Me Please: 403 access denied on my css & js files, possibly due to limited knowledge of .htaccess - El Forum - 12-09-2013 [eluser]noideawhattotypehere[/eluser] You should not put any public files under application directory. Its protected with htaccess and index.html files for a reason Rescue Me Please: 403 access denied on my css & js files, possibly due to limited knowledge of .htaccess - El Forum - 12-09-2013 [eluser]die onsigbare[/eluser] [quote author="noideawhattotypehere" date="1386597238"]You should not put any public files under application directory. Its protected with htaccess and index.html files for a reason[/quote] Thank you for the important tip, that changes everything. |