java - URLRewriteFilter - pointing subdomain to subfolder -
currently domain requests being directed www using following urlrewrite rule:
<rule> <name>canonical redirect</name> <condition name="host" operator="notequal">^test.com</condition> <condition name="host" operator="notequal">^$</condition> <from>^/(.*)</from> <to type="permanent-redirect" last="true">http://www.test.com/$1</to> </rule> i have 2 requirements:
- i have domain child.test.com - not want domain direct www.test.com
- i need child.test.com point subfolder without showing in browser url: i.e typing child.test.com should call test.com/child @ backend without changing url in browser.
i believe can use following code, seems missing something. help!
<rule name="redirectto" stopprocessing="true"> <match url="http://child.test.com" /> <action type="redirect" url="http://test.com/child" /> </rule>
Comments
Post a Comment