After removing my codeigniter project from a xampp server to a Live server i've got an error when trying to access my home page without index.php in front..
this is my route :
$route['home'] = 'Pages/view/home';
this is my config :
$config['index_page'] = '';
$config['base_url'] = 'http://mysite/newsite';
$config['uri_protocol'] = 'REQUEST_URI';
my .htaccess file :
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
so when i try to surf to www.mysite/home it gives me this error :
The requested URL /index.php/home was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
but when i surf to www.mysite/index.php/home it does work
I tried different htaccess files but without success
RewriteRule ^(.*)$ /index.php/$1 [L]toRewriteRule ^(.*)$ /newsite/index.php/$1 [L]