I am using Codeigniter in Local WAMP. Here code is working fine. But i upload in Cpanel ( inside of example.com, folder name call \'mysite\'). Ther
mysite
$config['base_url'] = 'http://example.com/mysite/';
Better than :
$config['base_url'] = 'http://example.com/mysite';
Try this :
RewriteBase / RewriteEngine on RewriteCond $1 !^(index\.php|images|robots\.txt) RewriteRule ^(.*)$ /mysite/index.php/$1 [L]