Plesk

Website on Plesk returns error 500: Invalid command ‘RewriteEngine’, or pages for all sites return 404

Symptoms

Cause

Rewrite module for Apache is disabled.

Resolution

Enable rewrite_module module:

  1. Log in to Plesk.
  2. Go to Tools & Settings > Apache Web Server > Apache modules.
  3. Check rewrite and click OK.