Alternate Domain // ASP coding:

Discussion in 'ASP.NET / ASP.NET Core' started by valonsopaj, Nov 21, 2005.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Hello all:

    This is my first post to this forum and I did search before posting, however I couldn't find anything relevant to my question:

    What I am trying to do is this:
    I have three various domains that I want to point to various subfolders in my servers (hosted with dicountASP.net)
    www.domainONE.com
    www.domainTWO.com
    www.domainTHREE.com

    I cannot purchase a new hosting service because all three domains use the same shopping cart. What I need done is that when someone goes to either one of the links - the link should point the visitor to the corresponding folder, for example:

    www.domainONE.com >>> domainONE.com (sub-folder)
    www.domainTWO.com >>> domainTWO.com (sub-folder)
    www.domainTHREE.com >>> domainTHREE.com (sub-folder)

    I spoke with discountASP.net and they had kindly suggested that I write my own ASP code for this, which I have no idea how to do (?!)

    Does anyone know anything about this and if so, could you please help?

    Thanks Tons, Val. /emoticons/sad.gif
     
  2. Bruce

    Bruce DiscountASP.NET Staff

  3. Bruce:

    Thanks for your reply and useful information.

    In regards to that, Is there any way to have the actual domain stay the same on the address bar. For example www.DomainOne.com, www.DomainTwo.com...
    I have another account with Media Temple and they actually let you point up to 5 different unique domains in their server - with all of them showing their actual domain address. I think they call them alternate domains.

    Is there any way to do this at discountAsp.net?

    Thanks, v.
     
  4. Bruce

    Bruce DiscountASP.NET Staff

  5. Two questions:

    - Do i need to purchase any service from discountASP.net to point my domains to the server?
    - From the knowledge base: You will need to place it as default document on your document root.

    What is a default document?

    Sorry man, i'm very new to ASP and totally clueless.
    Thanks tons for the help though.

    V.
     
  6. regarding the default document :


    when requesting an url like www.mydomain.com, which does not include a real page (like default.asp), the webserver lookswhether any document from the "default document list" exists. If so, that document willbe executed. The default document list can be found in your discountASP.NET Hosting control panel under Tools & Utilities > IIS Manager. Click the Default docs tab. The rank of the documents is important !


    --
    Steurm
    www.steurm.net/steurm
    [​IMG]
     
  7. Hey Guys, Thanks Tons for your Help!

    This really helped a lot!!!
    Very straight forward, thanks again.

    PS: One last question. Do you guys know if there's anyway for the script below to not show the actual folder where it's going??

    <%
    If InStr( UCase(Request.ServerVariables('SERVER_NAME')), UCase('secretagoguegold.com') ) > 0 Then
    Response.Redirect('/index2.html')
    ElseIf InStr( UCase(Request.ServerVariables('SERVER_NAME')), UCase('getamidren.com') ) > 0 Then
    Response.Redirect('/indexg')
    ElseIf InStr( UCase(Request.ServerVariables('SERVER_NAME')), UCase('amidren.com') ) > 0 Then
    Response.Redirect('/indexa')
    End If
    %>

    For example: when I type www.getamidren.com - the address bar shows www.getamidren.com/indexg - is there any way to only show the domain name without showing where it's actually going??

    I was thinking of using frames, but then again I couldn't make the subfolder name disapear??! Any ideas??

    Thanks again guys !!

    Post Edited (DevAmateur) : 12/19/2005 12:08:56 AM GMT
     
  8. Actually - never mind my last post.

    What I did is that I created a index.html file with frames

    Frame 1 = 0 - empty.html
    Frame 2 = * - default.aspx

    default.aspx contains the code below - which redirects everything to their apropriate folders without showing the subfolder.

    Thanks tons steurm and bruce

    vs.
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page