Hello everyone,
I have been stuck with this problem for hours, codeigniter only load the index of my default controller here i show you my code
PHP Code:
<li class="joinus">
<a class="" href="<?php echo base_url('site/about');?>">Join us</a>
</li>
my view where i call my function
PHP Code:
class Site extends CI_Controller
{
public function __construct()
{
parent::__construct();
}
public function index()
{
$this->load->view('header.php');
$this->load->view('home.php');
$this->load->view('footer.php');
}
public function about()
{
$this->load->view('header.php');
$this->load->view('about.php');
$this->load->view('footer.php');
}
}
my controller
PHP Code:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ index.php/$1 [L]
and my .htaccess located in my root folder
my 'index.php' variable in conf is unset, my mod_rewrite on i tried each 'uri_protocol' and my 'base_url' is set like 'http://localhost:888/myapp' i also tried to modify my .htaccess but still the same problem ci load only the same index of my main controller and i cant call any others functions