I've just finished my CI's project and I've uploaded it through FTP to an external server. The thing is that the urls stuff works perfectly on localhost but not in the external server, altough the urls work if I put index.php on the URI.
Example: www.page.com/index.php/shop (works), www.page.com/shop (doesn't work)
I've made my research and all the answers I've found doesn't seem to fit well on my case. I'm working on Linux that use Apache2. I've made these changes:
1-/var/www/dev.example.com (Apache2):
<VirtualHost *:80>
<Directory /var/www/dev.example.com>
Options FollowSymLinks
AllowOverride All
</Directory>
2-Config.php(CI):
$config['base_url'] = 'http://' . $_SERVER['HTTP_HOST'] . '/dev.example.com';
3-htaccess(CI):
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?/$1 [L]
4-index.php(CI):
define('ENVIRONMENT', 'production')
What am I missing? Excuse me for my bad english.
EDIT:
I think the problem is that the .htaccess file it's not been called for some reason, so for many changes I make to the file the result will be the same. How can I see if the file it's being used?