Using a Re-direct following an Upgrade
It is generally considered better practice to send an HTTP code of 301 (rather than 302 - temporary redirect) to indicate a permanent redirect so that search engines and the like will update their index to reflect the new URL for the resource (provided by a Location header).
The following page snippet achieves this and preserves the query string. This should be in a page with the same name as your main iShare page.
Code snippet
<%@ Page Language="C#" %> <script runat="server"> protected override void OnLoad(EventArgs e) { string location = "http://maps.mendip.gov.uk/"; location += (Request.QueryString.Count > 0) ? "?" + Request.QueryString : ""; Response.Status = "301 Moved Permanently"; Response.AddHeader("Location", location); base.OnLoad(e); } </script>
Â
Â