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?
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?
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>