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 which I registered with I then signed up with to host my DNN 6 website so I pointed to which seemed to work. The problem I am having now is:

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

    How can I redirect from to the child portal ( 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:

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

    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