htaccess css path relative to index.php

I run CodeIgniter on local LAN.
Since I have Wordpress, Drupal,... and they should not conflict I need to run them as subfolder. For example:
My css is placed in:
In my PHP styles are addressed:
<?='<link href="css/mystyle.css" rel="stylesheet" type="text/css" />'?>
My problem is that as far as I load index.php there would be no problem. However, when I load a page with parameters like:
My browser looks for the style in relative way![b]users/css/mystyle.css[/b]
Which has an extra users in path.
I want all CSS to be adjusted in relative to:

this is the content of :
RewriteEngine on
#RewriteBase /
RewriteCond $1 !^(index\.php|image|css|robots\.txt)
RewriteRule ^(.*)$ index.php/$1 [L]

how to fix it?


<?='<link href="'. base_url() .'css/mystyle.css" rel="stylesheet" type="text/css" />'?>

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.