3
Contributors
5
Replies
6
Views
6 Years
Discussion Span
Last Post by Borzoi
0

Not sure you need to treat the url as a regex in your condition. This should work:

RewriteCond %{HTTP_HOST} www.example.com [NC]

Also, requests to the subdirectory itself will satisfy your condition, so you have a circular reference there. You need a new condition that causes the rule to only work on requests for resources NOT in your /subdomain/ directory.

Edited by quasipickle: n/a

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.