[eluser]Unknown[/eluser]
Hai everyone
this is my folder structure
Quote:
controllers/
admin.php
views/
admin/index.php
user/index.php
and my styles are in root directory
this is my admin/index.php (view) code
Code:
<link href="css/style.css" rel="stylesheet">
i added a .htaccess in root directory
my htaccess code is
Code:
RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt|resources)
RewriteRule ^(.*)$ /site/index.php/$1 [L]
and my route.php code is
Code:
$route['admin'] = "welcome/admin";
$route['admin/(.*)'] = 'admin/$1';
$route['admin'] = 'welcome/admin';
$route['(.*)'] = "admin/$1";
This is my structure when i load the page it not loading css
i put
Code:
<link href="<?php echo base_url(); ?>css/style.css" rel="stylesheet">
and i checked the viewpagesource in browser the url to the css is correct
i copied it to the browser navigation bar and enterd. but i got a codeigniter error like
page not found.
I thing you understand what is my problem
Please Help me
Arunkumar.t