![]() |
cant access stylesheet -is it my paths and config? - 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: cant access stylesheet -is it my paths and config? (/showthread.php?tid=19696) |
cant access stylesheet -is it my paths and config? - El Forum - 06-16-2009 [eluser]Ascenti0n[/eluser] HI all I have returned to CI after spending many months with Drupal and need to re-acquaint myself with CI fast. I have taken the applications folder outside the system folder, thus: Quote:/ I have written a simple controller that merely loads a view - this is my view: Code: <html> here is my htaccess file: Code: RewriteEngine on The image displays but the href to the stylesheet does not. I even tried changing the style tag to include the base_url Code: href="<?php echo base_url();?>styles/mic.css" My base site url in the config file is set to: Code: $config['base_url'] = "http://localhost/mic32/"; I'm certain it's a path issue, but I can't see the wood for the trees, can someone help me with a fresh set of eyes. Thanks cant access stylesheet -is it my paths and config? - El Forum - 06-16-2009 [eluser]Dam1an[/eluser] I think you need to add 'styles' to your rewrite condition, so you have Code: RewriteEngine on cant access stylesheet -is it my paths and config? - El Forum - 06-16-2009 [eluser]TheFuzzy0ne[/eluser] You need to add any directories you want accessible to the list: Code: RewriteCond $1 !^(index\.php|images|robots\.txt|styles) EDIT: RAWR! cant access stylesheet -is it my paths and config? - El Forum - 06-16-2009 [eluser]Ascenti0n[/eluser] thanks you both very much - that was it - I can now crack on with the good stuff ![]() cant access stylesheet -is it my paths and config? - El Forum - 06-16-2009 [eluser]Dam1an[/eluser] [quote author="TheFuzzy0ne" date="1245169613"]EDIT: RAWR![/quote] Whats up? Did you get beaten again? ![]() Glad that solved it ![]() |