rewrite rules are not applied to a virtual host

Problem:

Rewrite rules defined outside <VirtualHost> are not applied to the virtual host.

 

Solution:

Add the following line inside the <VirtualHost>

RewriteOptions Inherit

Leave a Reply

Your email address will not be published. Required fields are marked *