Use `RewriteEngine On` where there are rewrites

This ensures that the runtime rewriting engine will be enabled
even if users use only certain parts of the configuration file.