So you should go for
Custom Errors in ASP.NET[
^]
Try this:
<customerrors defaultredirect="~/SomeErrorPage.htm" mode="On">
<error statuscode="303" redirect="~/YourPage.htm" />
</customerrors>
Also check
Displaying a Custom Error Page (C#)[
^].
[Edit]
Try this in your master page:
protected void Page_Load(object sender, EventArgs e)
{
if (Response.StatusCode == 303)
{
switch (Request.Url.AbsoluteUri)
{
case "Your 1st LongURL":
Response.Redirect("Your 1st SortURL");
break;
case "Your 2nd LongURL":
Response.Redirect("Your 2nd SortURL");
break;
case "Your 3rd LongURL":
Response.Redirect("Your 3rd SortURL");
break;
default:
break;
}
}
}
[/Edit]
--Amit