Not able to access sub directory from a sub-domain

Discussion in 'Site Programming, Development and Design' started by livnow23, May 7, 2015.

  1. Hi,

    I have installed umbraco on the root folder (livnowco) its working fine. Now I have a asp.net application on sub directory. The sub directory path is as below.

    livnowco/worlstocksApp

    I have pointed the sub domain - http://worldstocksapp.gurukaizen.com/ to this sub directory and modified the web.config for url rewrite. However the sub domain is not working. I am attaching the error screen shot and the web.config. Please help me with this .


    Here is the web.config section for rewrite


    <rewrite>

    <rules>

    <rule name="Rewrite to root" stopProcessing="true">

    <match url="(.*)" />

    <conditions>

    <add input="{HTTP_HOST}" pattern="^www.gurukaizen.com$" />

    </conditions>

    <action type="Rewrite" url="livnowco/{R:1}" />

    </rule>

    <rule name="Rewrite to worldstocksapp" stopProcessing="true">

    <match url="(.*)" />

    <conditions>

    <add input="{HTTP_HOST}" pattern="^worldstocksapp.gurukaizen.com$" />

    </conditions>

    <action type="Rewrite" url="worldstocksapp/{R:1}" />

    </rule>

    <rule name="Rewrite to orchard" stopProcessing="true">

    <match url="(.*)" />

    <conditions>

    <add input="{HTTP_HOST}" pattern="^orchard.gurukaizen.com$" />

    </conditions>

    <action type="Rewrite" url="orchard/{R:1}" />

    </rule>

    </rules>

    </rewrite>
     
  2. Michael likes this.
  3. Hi Cruz,
    Thanks for responding. Its working now. I had to delete the umbraco on the root folder - it was causing the issue
     
    Michael likes this.

Share This Page