301 redirect for dynamic domain

0

Good afternoon, guys. We have a myite.com site and we've updated it and domains such as myite.com?id=123 have lost their way. How do I make 301 on these dynamic URLs in IIS?

    
asked by anonymous 26.06.2015 / 22:12

1 answer

0

You could do this:

<script runat=”server”>
private void Page_Load(object sender, System.EventArgs e)
{
Response.Status = “301 Moved Permanently”;
Response.AddHeader(“Location”,”http://www.meusite.com.br”);
}
</script>
    
27.06.2015 / 15:08