response.redirect problem

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

    response.redirect problem

    I am using response.redire c to do the url redirection on my login page. The
    login page is under http://myURL/test/dir1/login.aspx, when the user login
    successfully, the login page redirects the user to the default.apsx page,
    which is under http://myURL/test/dir1/default.aspx.

    When I enter the IP address of myURL in the address bar, the redirection
    works perfectly fine, but if I enter myURL (which is hostname) in the address
    bar, the redirection in login page doesn't work anymore, the login page just
    gets refreshed.

    Does anyone has ideas how to solve this problem? Thanks a lot!
  • Curt_C [MVP]

    #2
    Re: response.redire ct problem

    gtea wrote:[color=blue]
    > I am using response.redire c to do the url redirection on my login page. The
    > login page is under http://myURL/test/dir1/login.aspx, when the user login
    > successfully, the login page redirects the user to the default.apsx page,
    > which is under http://myURL/test/dir1/default.aspx.
    >
    > When I enter the IP address of myURL in the address bar, the redirection
    > works perfectly fine, but if I enter myURL (which is hostname) in the address
    > bar, the redirection in login page doesn't work anymore, the login page just
    > gets refreshed.
    >
    > Does anyone has ideas how to solve this problem? Thanks a lot![/color]

    The server may not have the DNS pointer.
    Check the network settings on the server or add a hostfile entry

    --
    Curt Christianson
    site: http://www.darkfalz.com
    blog: http://blog.darkfalz.com

    Comment

    • gtea

      #3
      Re: response.redire ct problem

      Hi Curt,

      Thanks for your response. For whatever reason, the problem got sovled by
      itself! All I did just deleted all the cookies in the temp files. I don't
      think it was relevant to the problem. Anyway, the page redirection works now
      regardless of the url (ip or hostname)

      BTW, I added the myURL hostfile entry (after the problem disappeared)

      Thanks!

      "Curt_C [MVP]" wrote:
      [color=blue]
      > gtea wrote:[color=green]
      > > I am using response.redire c to do the url redirection on my login page. The
      > > login page is under http://myURL/test/dir1/login.aspx, when the user login
      > > successfully, the login page redirects the user to the default.apsx page,
      > > which is under http://myURL/test/dir1/default.aspx.
      > >
      > > When I enter the IP address of myURL in the address bar, the redirection
      > > works perfectly fine, but if I enter myURL (which is hostname) in the address
      > > bar, the redirection in login page doesn't work anymore, the login page just
      > > gets refreshed.
      > >
      > > Does anyone has ideas how to solve this problem? Thanks a lot![/color]
      >
      > The server may not have the DNS pointer.
      > Check the network settings on the server or add a hostfile entry
      >
      > --
      > Curt Christianson
      > site: http://www.darkfalz.com
      > blog: http://blog.darkfalz.com
      >[/color]

      Comment

      • Foo Man Chew

        #4
        Re: response.redire ct problem

        > BTW, I added the myURL hostfile entry (after the problem disappeared)

        Now, make sure this works from another machine as well. Knowing that the
        page works on one machine only is pretty useless, unless it is only ever
        going to be accessed by that one machine.


        Comment

        Working...