How to setup subdomain?

Discussion in 'General troubleshooting' started by koav, Jul 9, 2014.

  1. Hello.

    I have a domain "mydomain.com"
    - I have www.mydomain.com at root directory (ASP.NET MVC+MSSQL)
    - I'd like have portal.mydomain.com to directory /portal
    - portal.mydomain.com work with PHP+MySQL

    Subdomain created.
    Application Starting Point created.

    portal.mydomain.com - not avaible! Fiddler show me "HTTP/1.1 301 Moved Permanently"
    mydomain.com/portal - avaible. But when I upload php files - I get a redirect to domain home page.

    I tried the KB below but not work:
    https://support.Winhost.com/KB/a649/how-to-redirect-a-subdomain-to-a-subdirectory.aspx
    http://benpowell.org/Winhost-com-how-to-really-run-multiple-sites-under-one-account/

    I tried edit web.config but not work:
    <rules>
    <rule name="portal.mydomain.com" stopProcessing="true">
    <match url="(.*)" />
    <conditions logicalGrouping="MatchAll">
    <add input="{HTTP_HOST}" pattern="^portal.mydomain.com$" />
    <add input="{REQUEST_URI}" negate="true" pattern="/portal" />
    </conditions>
    <action type="Redirect" url="http://portal.mydomain.com/portal/{R:1}" />
    </rule>
    </rules>

    I read all theard at forum but not find simple way to fix that.
    How to setup subdomain? Anybody help me?
     
    Last edited by a moderator: Oct 14, 2015
  2. FredC

    FredC Winhost Staff

    What is the domain name? You can PM it to me. i can do some trace for you
     
  3. Thank you, FredC!

    vesminus.com
    portal.vesminus.com

    P.S. Where is a link to write private message? o_O
     
  4. Untitled-1.jpg
     
    Elshadriel likes this.
  5. Joseph Bazalgette

    Joseph Bazalgette King of the sewers...

    did this ever get resolved?? I have the same question. Why take the solution/discussion offline or into a PM??? isn't the whole point of a forum to 'share' the knowledge or solutions to problems?
     
  6. What was the name of your subdomain? I had troubles with "portal" name. I renamed it and it worked properly.
     

Share This Page