Welcome Guest, Not a member yet? Register   Sign In
Not able to access my assets folder
#1

[eluser]carlosgoce[/eluser]
I have tried everything and i just cant do it.

This is my info:
Project: gestion
Url: localhost:8085/gestion/
Assets folder: application/assets/
/css
/js
/etc

My .htaccess file looks something like this:
Code:
RewriteEngine on
RewriteCond $1 !^(index\.php|robots\.txt)
RewriteRule ^(.*)$ /gestion/index.php/$1 [L]

I create a constant on constants.php:
Code:
define('ASSETSPATH', APPPATH.'assets');

So then i call from the views to my css with this:
Code:
<link href="<?=ASSETSPATH?>/css/bootstrap.css" rel="stylesheet">

But it says "forbidden access" on the javascript console.

So i try to give access to assets folder with a new .htaccess on assets folder with the next content:
Code:
Options +Indexes

But it's not working. I tried a lot of things and i can't find a way to load my assets content.

Thank you for your time.


Messages In This Thread
Not able to access my assets folder - by El Forum - 05-07-2013, 03:49 AM
Not able to access my assets folder - by El Forum - 05-07-2013, 06:25 AM
Not able to access my assets folder - by El Forum - 05-07-2013, 07:42 AM
Not able to access my assets folder - by El Forum - 05-07-2013, 07:52 AM
Not able to access my assets folder - by El Forum - 05-08-2013, 02:05 AM



Theme © iAndrew 2016 - Forum software by © MyBB