ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

How apply css file

October 31, 2013 2:46pm

Subscribe [2]
  • #1 / Oct 31, 2013 2:46pm

    rad11

    23 posts

    Hello I cannot apply a css file.

    I add to in my view file:

    <head>
            <link rel="stylesheet" type="text/css" href="<?PHP echo base_url(); ?>css/style.css">
    </head>


    My .htaccess:

    RewriteEngine on  
    RewriteCond $1 !^(index\.php|images|css|js|robots\.txt|favicon\.ico)  
    RewriteCond %{REQUEST_FILENAME} !-f  
    RewriteCond %{REQUEST_FILENAME} !-d  
    RewriteRule ^(.*)$ ./index.php/$1 [L,QSA]

    My folders:
    Source FIles
    -application
    -css
    -system
    -user_guide

    My config file:

    $config[‘base_url’] = ‘localhost/CI2/’;

    and its not working :(

     

     

     

  • #2 / Nov 01, 2013 6:44am

    Ralph

    78 posts

    Try using {site_url} instead:

    <link rel="stylesheet" type="text/css" href="{site_url}css/style.css">
.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases