RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
This is how I do in my .htaccess
file, it's perfectly work on my local server
- Windows 7
- WampServer with PHP 5.5 Apache 2.4.9
http://api.app/facebook/show will show the correct result
But in my Linux server
- PHP 5.4.39
- Apache 2.2.3
- CentOS 5.11
http://api.app/index.php/facebook/show I have to do this, how to fix it?