rewrite but keep subdomain

51 views
Skip to first unread message

bobmanc

unread,
Aug 26, 2015, 2:30:46 AM8/26/15
to UrlRewrite
I need to just replace the domain name and keep everything else.

For example
would rewrite to

I tried this but it doesn't seem to do anything. Any ideas? 

    <rule match-type="wildcard">
        <from>*.domain1.com/*</from>
        <to type="redirect">$1.domain1.com/$2</to>
    </rule>



Reply all
Reply to author
Forward
0 new messages