[eluser]kamikaz[/eluser]
Nobody has a solution? I'm still searching on the web but nobody seems to have this problem.
I put my htaccess and my routes, maybe it is a start:
Code:
RewriteEngine on
# Removes access to the system folder by users.
# Additionally this will allow you to create a System.php controller,
# previously this would not have been possible.
# 'system' can be replaced if you have renamed your system folder.
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php/$1 [L]
# Checks to see if the user is attempting to access a valid file,
# such as an image or css document, if this isn't true it sends the
# request to index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index\.php|assets|css|js|images|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]
RewriteRule ^(en|de|fr|nl|it|es)/assets/(.*)$ /assets/$1 [L]
RewriteRule ^(en|de|fr|nl|it|es)/(.*)$ $1 [L]
Code:
$route['default_controller'] = 'main';
$route['404_override'] = '';
$route['translate_uri_dashes'] = TRUE;
//LANG ROUTES
$route['^(en|de|fr|nl|it|es)/assets/(.+)$'] = "assets/$2";
// URI like '/en/about' -> use controller 'about'
$route['^(en|de|fr|nl|it|es)/(.+)$'] = "$2";
// '/en', '/de', '/fr' and '/nl' URIs -> use default controller
$route['^(en|de|fr|nl|it|es)$'] = $route['default_controller'];