Cobra Forum

Plesk Panel => Webserver => Topic started by: Suhitha on Dec 03, 2025, 05:52 AM

Title: Website on Plesk returns error 500: Invalid command 'RewriteEngine', or pages
Post by: Suhitha on Dec 03, 2025, 05:52 AM
Question: Website on Plesk returns error 500: Invalid command 'RewriteEngine', or pages for all sites return 404


Applicable to:



Symptoms


[core:alert] [client 203.0.113.2:40913] /var/www/vhosts/example.com/httpdocs/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
# httpd -M | grep -i rewrite


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.

4.Check rewrite and click OK.