.htaccessmod-rewritecodeigniterhttp-status-code-404codeigniter-url

Codeigniter 404 can't find index.php (only on real server, not on virtual server)


I got a working webpage with CodeIgniter. I did now just upload it to my webserver and it gives me a 404 error.

The browser address is "web-page.com/folder/en/about"

The baseurl in the config is "web-page/folder/"

Also this is in the config.php, I did try AUTO but it does not work either.

$config['index_page'] = "";
$config['uri_protocol'] = "QUERY_STRING";

The index.php is in "web-page.com/folder/"

My htaccess is in "web-page.com/folder/.htaccess"

The content of the .htaccess is

AddCharset utf-8 .css .html .xhtml
Options +FollowSymlinks
RewriteEngine on
RewriteBase  /folder/
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond $1 !^(index\.php|images|media|layout|css|libs|robots\.txt)
RewriteRule ^(.*)$ /folder/index.php?/$1 [L]

Do you have any tip, any idea, what can I try to do? I did check all the rights, even with 777 it does not work.

Thanks in advance.

Lukas


Solution

  • Okey, stupid, stupid me. I got it.

    The error was in my "routes.php" I hadt to lowercase the default controller from

    $route['default_controller'] = "Base";
    

    to:

    $route['default_controller'] = "base";
    

    My offline server did work with it though. Thanks for the support.