Forum Moderators: open
I've tried searching in Google and webmaster world but haven't found a definite solution. We have full control of the IIS server so any help on 301 redirecting our index page to the root domain would be awesome. Thanks.
<rule name="Default Document" stopProcessing="true">
<match url="(.*)index.aspx"/>
<action type="Redirect" url="{R:1}" redirectType="Permanent"/>
</rule>
Otherwise you could consider making default.aspx the default document and adding this to your index.aspx
private void Page_Load(object sender, System.EventArgs e)
{
Response.Status = "301 Moved Permanently";
Response.AddHeader("Location","http://www.website.com/");
}