I have this function
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Profile extends CI_Controller {
public function __construct(){
parent::__construct();
$this->load->library('session');
$this->load->helper('form');
$this->load->model('Mdl_profile');
$this->load->helper('string');
}
function index(){
$this->load->view('buttons/welcome');
}
function success(){
$this->load->view('buttons/welcome2');
}
}
The problem is, when i go to profile/success
the CSS is not loading.
in inspect element the path of the css is localhost/project/profile/css/style.css
instead of localhost/project/css/style.css
.
I have a .htaccess
file with this
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt|css|design|img|js)
RewriteRule ^(.*)$ /a-cat/index.php/$1 [L]
</IfModule>