One thought on “301 редирект asp.net

  1. anonim

    protected void Page_Load(object sender, EventArgs e)
    {
         Response.StatusCode = 301;
         Response.StatusDescription = “Moved Permanently”;
         Response.AddHeader(“Location”, “http://newsite.com/”);
         return;
    }

     

    Reply