code_junkie

How to host an asp.net mvc app on a domain that points to a subfolder?

Nov 13th, 2011
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. <rewrite>
  2. <rewriteMaps>
  3. <rewriteMap name="otherdomain" />
  4. </rewriteMaps>
  5. <rules>
  6. <rule name="otherdomain" stopProcessing="false">
  7. <match url=".*" />
  8. <conditions>
  9. <add input="{HTTP_HOST}" pattern="otherdomain.com" />
  10. </conditions>
  11. <action type="Rewrite" url="/site_folder/otherdomain/{R:0}" />
  12. </rule>
  13. </rules>
  14. </rewrite>
Add Comment
Please, Sign In to add comment