0

In localhost: It first comes to that default page in there i will redirect to this(code below)

 protected void Page_init(object sender, EventArgs e)
    {
         Response.Redirect("~/Contents/");
    }

This works fine for localhost but in the case of webhost: it comes to www.xyz.com and stops.

Can anyone help me resolve this problem.

Zadalaxmi
  • 421
  • 9
  • 27
  • Do you receive any errors, either server or client side? Have you tried watching the traffic with a tool such as [Fiddler](http://www.telerik.com/fiddler) to see if the HTTP 301 Redirect is going through successfully? – mason Apr 16 '14 at 13:25
  • No..i tried in Fiddler HTTP 301 Redirect is not happened – Zadalaxmi Apr 16 '14 at 13:48
  • 1
    Are you sure you're on the correct page? Perhaps the server is configured differently so you're not arriving on the page you think you're on. – mason Apr 16 '14 at 13:52

1 Answers1

0

It looks like the URL that is passed to the browser doesn't exist, so you're getting a redirect to a other site page instead.

You can use tool called Fiddler. This sits as a proxy between your Web server and your browser and issues a trace of what requests and responses are made.

Delta
  • 149
  • 9