Forwarded URL issue

Discussion in 'ASP General' started by Andy, Sep 9, 2004.

  1. Andy

    Andy Guest

    Hi All,
    I have a domain name assume "www.domainnew.com" which I
    am forwarding to "www.domainold.com/new" with mask.
    It works fine. My problem is I have a page call login.asp
    in the directory new.(I don't want to give the link from
    www.newdomain.com) I want the admin to go directly to
    www.domainnew.com/new/login.asp.(which I cannot)and not
    through www.domainold.com/new/login.asp (which I can).
    Any help will be great.

    Thanks
    Andy
    Andy, Sep 9, 2004
    #1
    1. Advertising

  2. After recovering from my dizziness, I think I concluded that you could
    create a virtual directory in domainnew.com called "new" that points to the
    physical root of your site to do this.

    Ray at work

    "Andy" <> wrote in message
    news:041e01c495fb$02e44220$...
    > Hi All,
    > I have a domain name assume "www.domainnew.com" which I
    > am forwarding to "www.domainold.com/new" with mask.
    > It works fine. My problem is I have a page call login.asp
    > in the directory new.(I don't want to give the link from
    > www.newdomain.com) I want the admin to go directly to
    > www.domainnew.com/new/login.asp.(which I cannot)and not
    > through www.domainold.com/new/login.asp (which I can).
    > Any help will be great.
    >
    > Thanks
    > Andy
    Ray Costanzo [MVP], Sep 9, 2004
    #2
    1. Advertising

  3. Andy

    Andy Guest

    Thanks Ray,
    This is shared hosting with godaddy.com. I can't create
    virtul directory.

    Thanks
    Andy
    >-----Original Message-----
    >After recovering from my dizziness, I think I concluded

    that you could
    >create a virtual directory in domainnew.com called "new"

    that points to the
    >physical root of your site to do this.
    >
    >Ray at work
    >
    >"Andy" <> wrote in message
    >news:041e01c495fb$02e44220$...
    >> Hi All,
    >> I have a domain name assume "www.domainnew.com" which I
    >> am forwarding to "www.domainold.com/new" with mask.
    >> It works fine. My problem is I have a page call

    login.asp
    >> in the directory new.(I don't want to give the link

    from
    >> www.newdomain.com) I want the admin to go directly to
    >> www.domainnew.com/new/login.asp.(which I cannot)and not
    >> through www.domainold.com/new/login.asp (which I can).
    >> Any help will be great.
    >>
    >> Thanks
    >> Andy

    >
    >
    >.
    >
    Andy, Sep 9, 2004
    #3
  4. Alright, how about a response.redirect then? If this is not possible
    because of the way things are setup, can you carefully re-explain your setup
    here paying special attention to your sample domain names? You have three
    different domain names in your sample below, but I believe you only actually
    meant to indicate you have two, correct?

    Ray at home

    "Andy" <> wrote in message
    news:86cf01c49603$2e54bc70$...
    > Thanks Ray,
    > This is shared hosting with godaddy.com. I can't create
    > virtul directory.
    >
    > Thanks
    > Andy
    > >-----Original Message-----
    > >After recovering from my dizziness, I think I concluded

    > that you could
    > >create a virtual directory in domainnew.com called "new"

    > that points to the
    > >physical root of your site to do this.
    > >
    > >Ray at work
    > >
    > >"Andy" <> wrote in message
    > >news:041e01c495fb$02e44220$...
    > >> Hi All,
    > >> I have a domain name assume "www.domainnew.com" which I
    > >> am forwarding to "www.domainold.com/new" with mask.
    > >> It works fine. My problem is I have a page call

    > login.asp
    > >> in the directory new.(I don't want to give the link

    > from
    > >> www.newdomain.com) I want the admin to go directly to
    > >> www.domainnew.com/new/login.asp.(which I cannot)and not
    > >> through www.domainold.com/new/login.asp (which I can).
    > >> Any help will be great.
    > >>
    > >> Thanks
    > >> Andy

    > >
    > >
    > >.
    > >
    Ray Costanzo [MVP], Sep 9, 2004
    #4
  5. Andy

    Andy Guest

    Thanks Ray,
    You are right I made a mistake there's only 2 domain
    1. "www.domainnew.com"
    2. "www.domainold.com"
    www.domainold.com is my original domain and I just added
    domainnew.com. My host is winsave.com and my domain
    registrar is godaddy.
    I created a new directory in olddomain and I am forwarding
    newdomain.com to domainold.com.new with mask.
    Everything works fine so far.
    Now I have an admin login page for domainnew.com with
    login.asp page.
    I want somehow the admin to this domain to go to the
    login.asp page directly from domainnew.com/new/login.asp.
    Which I am not sure how to do this. I can go
    domainold.com/new/login.asp. But I don't want this way.
    Once again thanks for trying to help.
    (Redirect will not work here, unless I am missing
    something)
    Thanks
    Andy
    >-----Original Message-----
    >Alright, how about a response.redirect then? If this is

    not possible
    >because of the way things are setup, can you carefully re-

    explain your setup
    >here paying special attention to your sample domain

    names? You have three
    >different domain names in your sample below, but I

    believe you only actually
    >meant to indicate you have two, correct?
    >
    >Ray at home
    >
    >"Andy" <> wrote in

    message
    >news:86cf01c49603$2e54bc70$...
    >> Thanks Ray,
    >> This is shared hosting with godaddy.com. I can't create
    >> virtul directory.
    >>
    >> Thanks
    >> Andy
    >> >-----Original Message-----
    >> >After recovering from my dizziness, I think I concluded

    >> that you could
    >> >create a virtual directory in domainnew.com

    called "new"
    >> that points to the
    >> >physical root of your site to do this.
    >> >
    >> >Ray at work
    >> >
    >> >"Andy" <> wrote in message
    >> >news:041e01c495fb$02e44220$...
    >> >> Hi All,
    >> >> I have a domain name assume "www.domainnew.com"

    which I
    >> >> am forwarding to "www.domainold.com/new" with mask.
    >> >> It works fine. My problem is I have a page call

    >> login.asp
    >> >> in the directory new.(I don't want to give the link

    >> from
    >> >> www.newdomain.com) I want the admin to go directly to
    >> >> www.domainnew.com/new/login.asp.(which I cannot)and

    not
    >> >> through www.domainold.com/new/login.asp (which I

    can).
    >> >> Any help will be great.
    >> >>
    >> >> Thanks
    >> >> Andy
    >> >
    >> >
    >> >.
    >> >

    >
    >
    >.
    >
    Andy, Sep 9, 2004
    #5
  6. "Andy" <> wrote in message
    news:8ed801c49690$5470c470$...
    > Thanks Ray,
    > You are right I made a mistake there's only 2 domain
    > 1. "www.domainnew.com"
    > 2. "www.domainold.com"
    > www.domainold.com is my original domain and I just added
    > domainnew.com. My host is winsave.com and my domain
    > registrar is godaddy.
    > I created a new directory in olddomain and I am forwarding
    > newdomain.com to domainold.com.new with mask.


    What is mask?

    And are you saying that these two domains are actually the same physical
    site on the server, just with two domains?

    What about in login.asp, doing:

    <%
    ''assuming you don't have to deal with SSL
    If UCase(Request.ServerVariables("SERVER_NAME")) = "DOMAINOLD.COM" Or
    UCase(Request.ServerVariables("SERVER_NAME")) = "WWW.DOMAINOLD.COM" Then
    Response.Redirect "http://www.domainnew.com/new/login.asp"
    %>

    Ray at work
    Ray Costanzo [MVP], Sep 9, 2004
    #6
  7. Andy

    Andy Guest

    Yes they are 2 different domain on the same box but
    different folder serving 2 different sites.
    Mask let me retain the domain name in URL, so the user
    does not know he is forwarded to different site.
    Login.asp page not for general public just for admin to go
    to the site and approve or disapprove things. I don't want
    general public to know about this page for security
    reasons.
    I am not sure where will I put the script you gave me.
    Andy
    >-----Original Message-----
    >
    >"Andy" <> wrote in

    message
    >news:8ed801c49690$5470c470$...
    >> Thanks Ray,
    >> You are right I made a mistake there's only 2 domain
    >> 1. "www.domainnew.com"
    >> 2. "www.domainold.com"
    >> www.domainold.com is my original domain and I just added
    >> domainnew.com. My host is winsave.com and my domain
    >> registrar is godaddy.
    >> I created a new directory in olddomain and I am

    forwarding
    >> newdomain.com to domainold.com.new with mask.

    >
    >What is mask?
    >
    >And are you saying that these two domains are actually

    the same physical
    >site on the server, just with two domains?
    >
    >What about in login.asp, doing:
    >
    ><%
    >''assuming you don't have to deal with SSL
    >If UCase(Request.ServerVariables("SERVER_NAME"))

    = "DOMAINOLD.COM" Or
    >UCase(Request.ServerVariables("SERVER_NAME"))

    = "WWW.DOMAINOLD.COM" Then
    >Response.Redirect "http://www.domainnew.com/new/login.asp"
    >%>
    >
    >Ray at work
    >
    >
    >.
    >
    Andy, Sep 9, 2004
    #7
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Luke
    Replies:
    0
    Views:
    378
  2. Johnnie Norsworthy

    Redirecting Forwarded Domain to a Subfolder

    Johnnie Norsworthy, Dec 2, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    309
    Johnnie Norsworthy
    Dec 2, 2004
  3. =?Utf-8?B?QW5kcsOp?=

    Using AJAX in a masked forwarded Domain

    =?Utf-8?B?QW5kcsOp?=, Oct 22, 2007, in forum: ASP .Net
    Replies:
    2
    Views:
    332
    =?Utf-8?B?QW5kcsOp?=
    Nov 5, 2007
  4. Sergey Antonyuk

    X-Forwarded-For Header

    Sergey Antonyuk, Feb 17, 2005, in forum: ASP General
    Replies:
    4
    Views:
    143
    Ray Costanzo [MVP]
    Feb 18, 2005
  5. Replies:
    1
    Views:
    198
    Egbert Nierop \(MVP for IIS\)
    Feb 23, 2005
Loading...

Share This Page