Create Sub Domain

Discussion in 'DNS/Domain names' started by Rizwan, Aug 26, 2011.

  1. I did following setting regarding creating sub domain under my main domain


    www.thesoftwareservices.com (domain)

    thesoft2 (root folder)


    1) Create sub folder as “pos” under “thesoft2”
    2) Copy my new sites into pos sub folder
    3) Write script in Default.aspx, this file root file under sub folder “pos”


    <%@ Page Language="vb" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">

    <link href="css/style.css" rel="stylesheet" type="text/css" runat="server" />

    <%
    If InStr(UCase(Request.ServerVariables("SERVER_NAME")), UCase("pos.thesoftwareservices.com")) > 0 Then
    Response.Redirect("/pos/default.aspx")
    End If
    %>

    <title>POS</title>
    </head>
    <body >

    4) Create sub domain under Subdomain Manager Tool
    pos.thesoftwareservices.com

    5) Create Application Starting Points
    /pos


    After this process my sub domain working like that
    www.thesoftwareservices.com/pos/default.aspx


    but still is not working like that
    pos.thesoftwareservices.com
    it is point to thesoftwareservices.com

    I want my subdomain working like that
    pos.thesoftwareservices.com

    did I missing any step ?



    Thanks
     

Share This Page