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