I have CodeIgniter application that I transferred to a subdomain: customer.domain.com/application-name/
Now when I access the above URL, I can see the login page and links to images etc. work.
What doesn't work, however, is routing. It returns a 500 server error because what it tries to do is access:
customer.domain.com/customer/class/method
So as you can see, somehow the subdomain is appended to the url. This should not be the case. The configured base path should be used. So I would expect it to access:
customer.domain.com/application-name/class/method
.
I have the feeling I need to add something in my .htaccess file, but I'm not quite sure what to do.
My config.php file:
$route['default_controller'] = "pub";
$route['404_override'] = '';
$route['welcome'] = 'pub/welcome';
$route['send_new'] = 'pub/send_new';
$route['cron'] = 'pub/cron';
$route['invitation/(:any)'] = 'pub/invitation/$1';
$route['unsubscribe/(:any)'] = 'pub/unsubscribe/$1';
$route['widget/(:any)'] = 'pub/widget/$1';
$route['excel-tpl'] = 'pub/excel_tpl';
$route['pub/(:any)'] = 'pub/$1';
$route['pub/(:any)/(:any)'] = 'pub/$1/$2';
$route['(:any)'] = 'pub/short_url/$1';
My .htaccess file:
RewriteEngine on
RewriteRule \.(js|css)$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?$1 [QSA,L]
I hope you guys can help me out.