Forwarded URL issue

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Andy

    Forwarded URL issue

    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]

    #2
    Re: Forwarded URL issue

    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" <andy197300@yah oo.com> wrote in message
    news:041e01c495 fb$02e44220$a40 1280a@phx.gbl.. .[color=blue]
    > 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[/color]


    Comment

    • Andy

      #3
      Re: Forwarded URL issue

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

      Thanks
      Andy[color=blue]
      >-----Original Message-----
      >After recovering from my dizziness, I think I concluded[/color]
      that you could[color=blue]
      >create a virtual directory in domainnew.com called "new"[/color]
      that points to the[color=blue]
      >physical root of your site to do this.
      >
      >Ray at work
      >
      >"Andy" <andy197300@yah oo.com> wrote in message
      >news:041e01c49 5fb$02e44220$a4 01280a@phx.gbl. ..[color=green]
      >> 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[/color][/color]
      login.asp[color=blue][color=green]
      >> in the directory new.(I don't want to give the link[/color][/color]
      from[color=blue][color=green]
      >> 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[/color]
      >
      >
      >.
      >[/color]

      Comment

      • Ray Costanzo [MVP]

        #4
        Re: Forwarded URL issue

        Alright, how about a response.redire ct 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" <anonymous@disc ussions.microso ft.com> wrote in message
        news:86cf01c496 03$2e54bc70$a60 1280a@phx.gbl.. .[color=blue]
        > Thanks Ray,
        > This is shared hosting with godaddy.com. I can't create
        > virtul directory.
        >
        > Thanks
        > Andy[color=green]
        > >-----Original Message-----
        > >After recovering from my dizziness, I think I concluded[/color]
        > that you could[color=green]
        > >create a virtual directory in domainnew.com called "new"[/color]
        > that points to the[color=green]
        > >physical root of your site to do this.
        > >
        > >Ray at work
        > >
        > >"Andy" <andy197300@yah oo.com> wrote in message
        > >news:041e01c49 5fb$02e44220$a4 01280a@phx.gbl. ..[color=darkred]
        > >> 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[/color][/color]
        > login.asp[color=green][color=darkred]
        > >> in the directory new.(I don't want to give the link[/color][/color]
        > from[color=green][color=darkred]
        > >> 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[/color]
        > >
        > >
        > >.
        > >[/color][/color]


        Comment

        • Andy

          #5
          Re: Forwarded URL issue

          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.n ew 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[color=blue]
          >-----Original Message-----
          >Alright, how about a response.redire ct then? If this is[/color]
          not possible[color=blue]
          >because of the way things are setup, can you carefully re-[/color]
          explain your setup[color=blue]
          >here paying special attention to your sample domain[/color]
          names? You have three[color=blue]
          >different domain names in your sample below, but I[/color]
          believe you only actually[color=blue]
          >meant to indicate you have two, correct?
          >
          >Ray at home
          >
          >"Andy" <anonymous@disc ussions.microso ft.com> wrote in[/color]
          message[color=blue]
          >news:86cf01c49 603$2e54bc70$a6 01280a@phx.gbl. ..[color=green]
          >> Thanks Ray,
          >> This is shared hosting with godaddy.com. I can't create
          >> virtul directory.
          >>
          >> Thanks
          >> Andy[color=darkred]
          >> >-----Original Message-----
          >> >After recovering from my dizziness, I think I concluded[/color]
          >> that you could[color=darkred]
          >> >create a virtual directory in domainnew.com[/color][/color][/color]
          called "new"[color=blue][color=green]
          >> that points to the[color=darkred]
          >> >physical root of your site to do this.
          >> >
          >> >Ray at work
          >> >
          >> >"Andy" <andy197300@yah oo.com> wrote in message
          >> >news:041e01c49 5fb$02e44220$a4 01280a@phx.gbl. ..
          >> >> Hi All,
          >> >> I have a domain name assume "www.domainnew. com"[/color][/color][/color]
          which I[color=blue][color=green][color=darkred]
          >> >> am forwarding to "www.domainold. com/new" with mask.
          >> >> It works fine. My problem is I have a page call[/color]
          >> login.asp[color=darkred]
          >> >> in the directory new.(I don't want to give the link[/color]
          >> from[color=darkred]
          >> >> www.newdomain.com) I want the admin to go directly to
          >> >> www.domainnew.com/new/login.asp.(which I cannot)and[/color][/color][/color]
          not[color=blue][color=green][color=darkred]
          >> >> through www.domainold.com/new/login.asp (which I[/color][/color][/color]
          can).[color=blue][color=green][color=darkred]
          >> >> Any help will be great.
          >> >>
          >> >> Thanks
          >> >> Andy
          >> >
          >> >
          >> >.
          >> >[/color][/color]
          >
          >
          >.
          >[/color]

          Comment

          • Ray Costanzo [MVP]

            #6
            Re: Forwarded URL issue


            "Andy" <anonymous@disc ussions.microso ft.com> wrote in message
            news:8ed801c496 90$5470c470$a60 1280a@phx.gbl.. .[color=blue]
            > 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.n ew with mask.[/color]

            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.S erverVariables( "SERVER_NAM E")) = "DOMAINOLD. COM" Or
            UCase(Request.S erverVariables( "SERVER_NAM E")) = "WWW.DOMAINOLD. COM" Then
            Response.Redire ct "http://www.domainnew.c om/new/login.asp"
            %>

            Ray at work


            Comment

            • Andy

              #7
              Re: Forwarded URL issue

              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[color=blue]
              >-----Original Message-----
              >
              >"Andy" <anonymous@disc ussions.microso ft.com> wrote in[/color]
              message[color=blue]
              >news:8ed801c49 690$5470c470$a6 01280a@phx.gbl. ..[color=green]
              >> 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[/color][/color]
              forwarding[color=blue][color=green]
              >> newdomain.com to domainold.com.n ew with mask.[/color]
              >
              >What is mask?
              >
              >And are you saying that these two domains are actually[/color]
              the same physical[color=blue]
              >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.S erverVariables( "SERVER_NAM E"))[/color]
              = "DOMAINOLD. COM" Or[color=blue]
              >UCase(Request. ServerVariables ("SERVER_NAME") )[/color]
              = "WWW.DOMAINOLD. COM" Then[color=blue]
              >Response.Redir ect "http://www.domainnew.c om/new/login.asp"
              >%>
              >
              >Ray at work
              >
              >
              >.
              >[/color]

              Comment

              Working...