Welcome Guest, Not a member yet? Register   Sign In
Mod_rewrite, /controller/function, and CSS/JS
#2

[eluser]jtkendall[/eluser]
Hi underskor,

Can you post your html lines for the CSS files? My guess would be that you need to use base_url() in front of the file location, for example:

Code:
<link rel="stylesheet" type="text/css" href="<?=base_url();?>style.css" />

or you can use a / and have it look at the web root for it. For example, I always put my css files in /assets/css/ so when I call one I use:

Code:
<link rel="stylesheet" type="text/css" href="/assets/css/style.css" />

Haven't had any problems with it (so far).


Messages In This Thread
Mod_rewrite, /controller/function, and CSS/JS - by El Forum - 01-10-2009, 07:10 AM
Mod_rewrite, /controller/function, and CSS/JS - by El Forum - 01-10-2009, 12:00 PM
Mod_rewrite, /controller/function, and CSS/JS - by El Forum - 01-10-2009, 04:45 PM



Theme © iAndrew 2016 - Forum software by © MyBB