Asset folder in root inaccessible |
[eluser]Chromana[/eluser]
I'm setting up a new website and trying to make it better than my previous COdeIgniter efforts. I'm putting an asset folder in root, as described by this post http://ellislab.com/forums/viewthread/66887/#334093 i.e. at the same level as index.php and the system folder. I am using the following in files: Code: <base href="<?php echo $this->config->item('base_url') ?>asset/" /> However, I get a 404 for www.mysite.com/asset/css/base.css and also just for www.mysite.com/asset/. Do I need to add something to routes to get this to work? At the moment I just have the default of: Code: $route['default_controller'] = "ctrl_main"; Many thanks!
[eluser]Chromana[/eluser]
Actually, I've discovered that it is my .htaccess file which is messing with stuff. I'm using the one described here: http://ellislab.com/codeigniter/user-gui.../urls.html Code: RewriteEngine on
[eluser]InsiteFX[/eluser]
Code: #Checks to see if the user is attempting to access a valid file,
[eluser]Chromana[/eluser]
[quote author="InsiteFX" date="1340915609"] Code: #Checks to see if the user is attempting to access a valid file, Thank you so much sir, you have solved my problem. Gold star for you. |
Welcome Guest, Not a member yet? Register Sign In |