I have the following setup: -> domain1.com is my main domain and also document root -> domain2.com is another domain which is registered as an alias domain (means it does ex
You can use this rule:
RewriteCond %{HTTP_HOST} ^(www\.)?domain2\.com$ [NC] RewriteRule !^subdir/ /subdir%{REQUEST_URI} [L,NC]
This will prefix every request for domain2.com with /subdir if it is not already there.
domain2.com
/subdir