Welcome Guest, Not a member yet? Register   Sign In
Rescue Me Please: 403 access denied on my css & js files, possibly due to limited knowledge of .htaccess
#1

[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/v...fault/lib/
- css = http://example.com/application/default/v...t/lib/css/
- js = http://example.com/application/default/v...lt/lib/js/

God Bless

#2

[eluser]die onsigbare[/eluser]
Ooh well. Due to my limited knowledge, I was editing an incorrect .htaccess file. Stupidity is part of humanity.

* IGNORE *
#3

[eluser]noideawhattotypehere[/eluser]
You should not put any public files under application directory. Its protected with htaccess and index.html files for a reason
#4

[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.




Theme © iAndrew 2016 - Forum software by © MyBB