Quantcast
Channel: CodeIgniter Forums - All Forums
Viewing all articles
Browse latest Browse all 14348

404 page after upgrade

$
0
0
Hi there,

I was using CI3 for a while, and recently I wanted to catch up with the latest update.
I first upgraded to from 3.0.0 TO 3.0.1 and all went well.

But from 3.0.1 to 3.0.2 throws a 404 page when accessing some controllers.
I replaced system folder and constants.php.

Code:
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

Class Biz extends CI_controller {

    public function __construct() {
        parent::__construct();
    }
    public function privacy() {
        
         if (!$this->agent->is_mobile()) {
                    
                
        $this->load->view('footer/privacy');
                
                }  else {
                  $this->load->view('mobile/footer/privacy');
                }
    }
}


The file controller is Biz.php

On localhost I access the page with this link: http://localhost/ci/biz/privacy

Code:
$config['base_url'] = 'http://localhost/ci/';
$config['index_page'] = '';
$config['uri_protocol']    = 'REQUEST_URI';

routes
Code:
$route['biz/privacy']='biz/privacy';

And like I said, everything worked fine on 3.0.1 but same error 404 page with any version above that.

Any help and suggestions will be much appreciated

Thank you

Viewing all articles
Browse latest Browse all 14348

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>