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:

  1. i have domain child.test.com - not want domain direct www.test.com
  2. 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

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -