a2dismod rewrite

Category: Web Servers & Proxies

a2dismod rewrite

Disable the Apache rewrite module

Unloads mod_rewrite, removing the RewriteEngine and RewriteRule directives from your configuration vocabulary. Any vhost (virtual host) still using them will fail the syntax check, so remove those directives first. Re-enable with a2enmod rewrite.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.