I know that there are a lot of solutions for this problem. But i've tried a lot of difference aproaches and non of them help. Explanation of the problem: When i set my CI project on the host webserver in a subfolder or Subdomain it only loads the default controller. On local everything works fine.
- I've tried setting the Uri Protocol from "AUTO" to "REQUEST_URI", didn't help
- I've tried many different htaccess solutions, but didn't help
- I've tried working on old-school index.php urls, didn't help
-
I've tried disabling all routes, didn't help
EDIT things tried:
- I've tried removing klanten from base url, like suggested. didn't help (suggested by @tomexsans)
My Settings:
$config['uri_protocol'] = "REQUEST_URI";
$config['index_page'] = '';
$config['base_url']= 'http://www.mywebsite.nl/klanten';
or for the subdomain:
$config['base_url']= 'http://klanten.mywebsite.nl/';
My htaccess:
DirectoryIndex index.php
RewriteEngine on
RewriteCond $1 !^(index\.php|img|stylesheets|javascript)
RewriteCond $1 !^(index\.php|img|css|js|robots\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L,QSA]
I'm running on a php 5.3.15 with CI 2.1.2
Any ideas are welcome!