# Hosting Server Error 500

**URL:** <https://discourse.slimframework.com/t/hosting-server-error-500/3688>\
**Category:** Questions\
**Created:** [November 29, 2019, 12:15pm UTC](https://discourse.slimframework.com/t/hosting-server-error-500/3688 "2019-11-29T12:15:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dario](https://avatars.discourse-cdn.com/v4/letter/d/bc79bd/32.png) [@dario](https://discourse.slimframework.com/u/dario)\
**Post date:** [November 29, 2019, 12:15pm UTC](https://discourse.slimframework.com/t/hosting-server-error-500/3688/1 "2019-11-29T12:15:49Z")

</div>

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]

---

<div class="post-metadata">

**Author:** ![dario](https://avatars.discourse-cdn.com/v4/letter/d/bc79bd/32.png) [@dario](https://discourse.slimframework.com/u/dario)\
**Post date:** [November 29, 2019, 6:03pm UTC](https://discourse.slimframework.com/t/hosting-server-error-500/3688/2 "2019-11-29T18:03:03Z")

</div>

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

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

```
