Domain name redirect to Subdomain

Discussion in 'DNS/Domain names' started by javagarth, Apr 19, 2012.

  1. This issue has been a pain in my rear for a while now.

    I own this domain: let's call it domain.com which I registered with no-ip.com. I then signed up with www.Winhost.com to host my DNN 6 website so I pointed no-ip.com to Winhost.com which seemed to work. The problem I am having now is:

    I installed DNN 6 through Winhost CPanel. When I access www.domain.com the website is under construction but when I visit www.domain.com/dotnetnuke then I reach my portal (dotnetnuke being the name of the portal).

    How can I redirect from domain.com to the child portal (www.domain.com/dotnetnuke) with IIS 7? Is redirects an option and can you send me an example of how would do this in quite some detail?

    Please can somebody help me out.
     
    Last edited by a moderator: Oct 14, 2015
  2. Last edited by a moderator: Oct 14, 2015
  3. Hi Allegro13, I am currently using regular expressions in IIS which modifies the webconfig as follows:


    <rules>
    <rule name="RedirectSubDomain" stopProcessing="true">
    <match url=".*" />
    <action type="Redirect" url="http://domain/dotnetnuke/{R:0}" />
    <conditions>
    <add input="{HTTP_HOST}" pattern="^domain\.com$" />
    </conditions>
    </rule>
    </rules>

    I'm not sure what you have given me or what to do with it. Please can you assist
     
  4. Last edited by a moderator: Oct 14, 2015

Share This Page