Welcome Guest, Not a member yet? Register   Sign In
404 regardless... [SOLVED]

Hey guys, I've just uploaded my project to my live server and cannot for the life of me get it going.

I'm getting a CI 404 error message when using this url




Relevant settings are:

$config['base_url'] = "http://www.domain.com/beta/";

$config['index_page'] = "index.php";

$config['uri_protocol']    = "AUTO";

$config['url_suffix'] = "";

$route['default_controller']  = 'betarel';

I don't have an htaccess file present.

I have tried all the other options for "uri_protocol", all with the same result.

My default controller code:

class Betarel extends Base_Controller
    function __construct()
        if($this->session->userdata('beta') || $this->session->userdata('ID'))

    function index()

I have my subclass_prefix set correctly.

The project was working perfect on my local machine.

Anything obvious I've missed?

Thanks a lot

I should add that my dir setup is like so


and in my index.php the path names are set as follows:

$system_folder = "system";

$application_folder = "application";

Hate to do this, but does anyone have any idea what may be going wrong? Thanks

Maybe your server is generating new .htaccess files.You have to investigate what is causing it,if my theory is correct.I heard someone call it .htaccess being generated and deployed on demand(i guess this is how your server responds to new threats,in some small way,i guess)

are you using routes?

Thanks for your replies guys.

I'm not using any routes sophistry.

I'm going to try out what this post says:


Will report back later.

you must have a default route set. what is that set to?

Sorry, yup I've got the default controller set to

$route['default_controller'] = 'betarel';

Everything was working fine on my local machine so it must be a server configuration problem.

so, i guess you are using dreamhost? that thread you linked to has information about htaccess but you said you are not using htaccess.

just as a test put a normal (not CI) php file called test.php right at your httpdocs root and see if it gets served.

http://www.domain.com/beta/test.php is working fine with


I'm not using dreamhost, it's a private server on fasthosts (I think it's fasthosts).

Theme © iAndrew 2016 - Forum software by © MyBB