public site redirect

Discussion in 'General troubleshooting' started by nb123, May 7, 2013.

  1. RayH

    RayH DiscountASP.NET Lackey DiscountASP.NET Staff

  2. martino

    martino DiscountASP.NET Staff

  3. well,site is not hosted on discountasp.net rightnow and i have redirect figured out for the other host but that redirect doesn't work here..i am testing it discountasp using alternative URL and before i point to discount asp namesever,i want to make sure it redirect correctly.
     
  4. martino

    martino DiscountASP.NET Staff

    That maybe the problem. If you have the code to redirect sabinalfootball.com to http://sabinalfootball.com/SabinalFootball/Public/SchoolHome.aspx

    Then the redirect will only work if the requested URL is: sabinalfootball.com

    Since the alternative URL is different the redirect will not work unless you program the code to redirect from the alternative URL to the: http://sabinalfootball.com/SabinalFootball/Public/SchoolHome.aspx

    I also pulled up your hosting account on my end to access the alternative URL and notice that our default document "index.htm" is getting pulled up first by the web server. Try removing this document from your directory.
     
  5. Thanks Martin for the heads up..i put the same redirect code in index file as it is in old host and it redirects fine..however when i am trying to load the public site 'FIRST TIME',it asks me to login(discountAsp user and pwd) before it redirects,there on if i load subsequently it doesn't ,why so?
     

Share This Page