We have an application hat has a lot of subdomains like this:
And we want to rewrite all incoming requests like this:
We have tried to configure the IsapiRewrite4.ini like this, but it doesn't work for us:
RewriteCond %HTTP_HOST ^(?!www\.myhost\.com).*$ [I]
RewriteRule ^/([^/]+)/(.*) http://$1.myhost.com/$2 [I]
Rewrite Log shows something like this in its last lines:
Wed Oct 07 18:18:43 - 1980 - DoRewrites: Rewrite Url to: 'http://subdomain1.myhost.com/otherStuff'
But our application gets this URL:
Can anyone help us to get the correct answer to this problem? We don't want a RedirectRule due to external requirements.
Thank you in advance