I am creating a website on localhost in xampp. It is working correctly with routes working as well. Path was 'localhost/mywebsite'.
I uploaded that website to live server. Path is 'www.mywebsite.com/beta/'. The website is not working. Only index page is working. When I click on any other link, It says 'File not found.'.
Any suggestions would be appreciated.
This is my routes.
$route['default_controller'] = 'front/index';
$route['404_override'] = '';
$route['translate_uri_dashes'] = FALSE;
/*admin*/
$route['admin'] = 'user/admin';
$route['admin/login'] = 'user/admin';
$route['admin/logout'] = 'user/logout';
$route['admin/persons'] = 'person';
$route['admin/categories'] = 'category';
$route['admin/games'] = 'game';
$route['admin/login/validate_credentials'] = 'user/validate_credentials';
/*Front End*/
$route['category/(:num)'] = "front/category/$1";
$route['game/(:num)'] = "front/game/$1";
$route['search'] = "front/search";
This is my config.php
$config['base_url'] = 'http://mywebsite.com/beta/';
$config['index_page'] = '';
And my .htaccess
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php/$0 [PT,L]