I'm trying to deploy a RESTful web application which was developed in a local machine. The same code works perfectly in the local XAMPP server but fails to load upon uploading into a remote Linux server.
Here'e the .htaccess file,
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ %{ENV:BASE}index.php [QSA,L]
Since it doesn't works, I've also tried with the small modification,
RewriteEngine On
RewriteBase /slim/
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [QSA,L]
I'm still getting error 500. Seems like the remote server is preventing the scripts or its files from getting executed. This is absolutely strange because the same codes works perfectly in local server. Any kind of help or suggestion would be realty appreciated.
The file permission for the file is also set to 777 (read, write, execute)
Current PHP version in remote server is PHP V5.6