A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: HTML and Subdomains

  1. #1

    Talking

    Hi guys,

    I have recently got myself a subdomain. My ISP who did it for me said that the subdomain can't be directed/pointed to a directory that I chose. Is this correct?

    So anyway... they pointed it to my main URL directory. So if I type in my main url I get the same page as my subdomain url. Get it?

    Is there anyway of detecting which URL they typed in and then redirecting them accordingly. Using meta tags maybe. I have devised a way to do it through JavaScript and the document.URL method.

    Is there are better way?

    Thanks

    ------------------
    --> B L U R
    --> www.rgbdesign.com.au

  2. #2
    Junior Member
    Join Date
    Mar 2000
    Posts
    2

    Talking

    Sure, try this code:

    <%
    sname = Request.ServerVariables("SERVER_NAME")
    sname = ucase(sname)
    if InStr(sname,"DOMAIN1") <> 0 then
    response.redirect "subdirectory to go to"
    elseif InStr(sname,"DOMAIN2") <> 0 then
    response.redirect "2nd subdirectory to go to"
    elseif........

    end if
    %>

  3. #3
    Junior Member
    Join Date
    Mar 2000
    Posts
    2

    Post

    Sorry, this board deleted the code. It is at the address below:
    http://www.crystaltech.com/webhostfaq.htm

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center