Hey guys,
using CodeIgniter I have the following problem on one specific webhost (locally and on my personal host it works just fine).
I have a class function which redirects if the URL does not include a language parameter or a link. So if it is /
, /home
, /de/
, etc. it redirects to /de/home
.
It works just fine if I request /folder/de/
or something like that, but if I request /folder/
it does not work, because it detects there is a folder.
My mod_rewrite looks like this
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]
Codeigniter gives me a 404 Page not found error.
Thanks.