CSS file is not loading - 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: CSS file is not loading (/showthread.php?tid=23434) Pages:
1
2
|
CSS file is not loading - El Forum - 10-12-2009 [eluser]wekadesign[/eluser] i think, it`s more secure if you place your css file not on your APPPATH, You can add under directory_your_ci_apps_in for example - system - application - chace - etc... - css --> add your css file inside this folder and you can access with <? echo link_tag('css/mystyles.css'); ?> or <link rel=“stylesheet” type=“text/css” href=“<?=base_url();?>css/action.css” media=“screen,projection” /> if you remove index.php with adding .htaccess file, you must create htaccess file like this RewriteEngine on RewriteCond $1 !^(index\.php|css|robots\.txt) RewriteRule ^(.*)$ index.php/$1 [L] |