Further restrict location match. Add RewriteRule to 'main' section too