Welcome Guest, Not a member yet? Register   Sign In
urlrewriting htaccess not working properly
#1

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">
 
                   <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 
$!^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ index.php/$[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
Reply


Messages In This Thread
urlrewriting htaccess not working properly - by thequem - 02-27-2016, 07:02 AM



Theme © iAndrew 2016 - Forum software by © MyBB