I can't access created folders inside application folder

#1
[eluser]daBayrus[/eluser]
I used to put all the images and css files in the ecn_lib directory which is allowed access by the .htaccess file in the root directory. Pages with images and css are rendered correctly.

Code:
Options +SymLinksIfOwnerMatch

<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond $1 !^(index\.php|ecn_lib|test)
    RewriteRule ^(.*)$ ./index.php/$1 [L]
</IfModule>

Now, i want to move all the images and css files of an application inside the application folder by creating this directory structure:

Code:
application
-- config
-- controllers
-- others
---- images
---- css
-- views

When i run the app, the pages are not rendering the images and the css styles, even after using absolute paths . Is it because of the .htacces file? What is the solution to this? I dont want to put the application folder and future applications in the rewrite condition because I want it to be dynamic and dont want to edit it for every new apps.

Many thanks.

#2
[eluser]Sarfaraz Momin[/eluser]
Try doing this if you have your application folder in the root. If it is in the System folder just replace application with system and it would work good.

Code:
Options +SymLinksIfOwnerMatch

<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond $1 !^(index\.php|application|test)
    RewriteRule ^(.*)$ ./index.php/$1 [L]
</IfModule>

Have a good day !!!

#3
[eluser]daBayrus[/eluser]
i've managed to make it work. wakoko! :coolsmile:


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.