I have a CI app that after switching servers, doesn't seem to route properly.
In my config I have
$config['uri_protocol'] = "PATH_INFO";
$config['enable_query_strings'] = TRUE;
This should allow both query string parameters and url segments.
So this, should in theory work (as it is on the old server):
http://www.domain.com/register?param=something
However, no matter what URL I go to it only shows the index.
So if I go to http://www.domain.com/register
It shows this in the address bar, however it doesn't get the register controller, it's showing the index.
If I change the 'uri_protocol' to REQUEST_URI, it works. But then query string parameters won't.
My .htaccess is
DirectoryIndex index.php
RewriteEngine on
RewriteCond $1 !^(index\.php|assets|robots\.txt|favicon\.ico|license.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ ./index.php/$1 [L,QSA]
RewriteCond %{QUERY_STRING} .
RewriteRule ^$ /? [L]
Any ideas what the issue could be? Like I say, it's working on a different server. So, I'm thinking something to do with apache perhaps?
Thanks a lot!