Welcome Guest, Not a member yet? Register   Sign In
CSS file is not loading
#11

[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]


Messages In This Thread
CSS file is not loading - by El Forum - 10-11-2009, 02:34 AM
CSS file is not loading - by El Forum - 10-11-2009, 02:52 AM
CSS file is not loading - by El Forum - 10-11-2009, 02:54 AM
CSS file is not loading - by El Forum - 10-11-2009, 04:33 AM
CSS file is not loading - by El Forum - 10-11-2009, 11:59 AM
CSS file is not loading - by El Forum - 10-11-2009, 12:02 PM
CSS file is not loading - by El Forum - 10-11-2009, 01:00 PM
CSS file is not loading - by El Forum - 10-11-2009, 02:19 PM
CSS file is not loading - by El Forum - 10-11-2009, 10:19 PM
CSS file is not loading - by El Forum - 10-11-2009, 11:01 PM
CSS file is not loading - by El Forum - 10-12-2009, 02:05 AM



Theme © iAndrew 2016 - Forum software by © MyBB