title: CodeIgniter showing only default controller
body: <p>I am using Codeigniter in Local <strong>WAMP</strong>. Here code is working fine. But i upload in Cpanel ( inside of example.com, folder name call '<code>mysite</code>'). There I changed as,</p>
  
  <ul>
  <li>db_name (config/database.php)</li>
  <li>db_user_name  (config/database.php)</li>
  <li>db_password  (config/database.php)</li>
  <li>base_url as <a href="http://example.com/mysite" rel="nofollow noreferrer">http://example.com/mysite</a> (config/config.php)</li>
  <li>uri_protocol as REQUEST_URI (config/config.php)</li>
  </ul>
  
  <p>And also changed <code>.htaccess</code>(mysite/.htaccess) as,</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
  
  RewriteEngine On
  
  # Set the rewritebase to your CI installation folder
  RewriteBase /mysite/
  
  
  # Send everything to index.php
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php/$1 [L]
  </code></pre>
  
  <p>But not in mysite/application/.htaccess . It's empty.</p>
  
  <p>Problem is, If I go <a href="http://example.com/mysite" rel="nofollow noreferrer">http://example.com/mysite</a> , it's showing default page as correctly. But if I click any link (<a href="http://example.com/mysite/user/signin" rel="nofollow noreferrer">http://example.com/mysite/user/signin</a>), it's showing same default page. but URL is changed.</p>
  
  <p>help me, Please...</p>
  
  <p><strong>config.php</strong></p>
  
  <pre><code>$config['base_url'] = 'http://example.com/mysite';
  $config['index_page'] = '';
  $config['uri_protocol'] = 'REQUEST_URI';
  $config['url_suffix'] = '';
  $config['language'] = 'english';
  $config['charset'] = 'UTF-8';
  $config['enable_hooks'] = FALSE;
  $config['subclass_prefix'] = 'MY_';
  $config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';
  $config['allow_get_array']      = TRUE;
  $config['enable_query_strings'] = FALSE;
  $config['controller_trigger']   = 'c';
  $config['function_trigger']     = 'm';
  $config['directory_trigger']    = 'd';
  $config['log_threshold'] = 0;
  $config['log_path'] = '';
  $config['log_date_format'] = 'Y-m-d H:i:s';
  $config['cache_path'] = '';
  $config['encryption_key'] = '***';
  $config['sess_cookie_name']     = 'ci_session';
  $config['sess_expiration']      = 7200;
  $config['sess_expire_on_close'] = FALSE;
  $config['sess_encrypt_cookie']  = FALSE;
  $config['sess_use_database']    = FALSE;
  $config['sess_table_name']      = 'ci_sessions';
  $config['sess_match_ip']        = FALSE;
  $config['sess_match_useragent'] = TRUE;
  $config['sess_time_to_update']  = 300;
  $config['cookie_prefix']    = "";
  $config['cookie_domain']    = "";
  $config['cookie_path']      = "/";
  $config['cookie_secure']    = FALSE;
  $config['global_xss_filtering'] = FALSE;
  $config['csrf_protection'] = FALSE;
  $config['csrf_token_name'] = 'csrf_test_name';
  $config['csrf_cookie_name'] = 'csrf_cookie_name';
  $config['csrf_expire'] = 7200;
  $config['compress_output'] = FALSE;
  $config['time_reference'] = 'local';
  $config['rewrite_short_tags'] = FALSE;
  $config['proxy_ips'] = '';
  define('CSS_FOLDER' , 'application/assets/css');
  define('DEFAULT_IMAGE_URL' , 'application/assets/images/default');
  </code></pre>
  
  <p><strong>routes.php</strong></p>
  
  <pre><code>$route['default_controller'] = "welcome";
  $route['404_override'] = '';
  $route['user/(:any)'] = 'user/index';
  </code></pre>