Hosting Server Error 500

Hello,

SLIM v3

I keep getting an Error 500.
On my localhost everything was working fine, but on the host server I keep getting this error. Only the starting page seems to work.

mod_rewrite is on.
.htaccess

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [QSA,L]

I solved my problem by changing the .htaccess file into:

RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]