DEV Community


Discussion on: Stopping .htaccess from handling API route

kamaln7 profile image
Kamal Nasser

To get more info on the 500 error, check Apache's error logs. Usually they're stored in /var/log/apache2/error.log. You can use the following command to print the last 30 lines of that file:

sudo tail -n 30 /var/log/apache2/error.log

I'm going to guess that the Rewrite module isn't enabled. If that's the case, enable it and restart Apache:

sudo a2enmod rewrite
sudo systemctl restart apache2