Contact Us  |  Knowledge Base  |  Control Panel 
Article Details
Redirect old URL to another site on your page

ISSUE:

You may have an old URL that you want to redirect to a new URL.

RESOLUTION

In order to redirect the URL, you need to use an ASP.NET Redirect file.

Here's an example:
You have www.Foo.com/SomeFolder and you want to redirect it to www.Foo.com/tabid/55/default.aspx

To do this you would:

1)  Log into Foo.com's FTP.
2)  Go to the /httpdocs/ folder
3)  Create a folder named SomeFolder.
4)  Create a file in this folder named "Index.aspx" with this content:

-----------------------------------
<script runat="server" Language="C#">
private void Page_Load(object sender, System.EventArgs e)
{
Response.Status = "301 Moved Permanently";
Response.AddHeader("Location","http://www.Foo.com/tabid/55/default.aspx");
}
</script>
-----------------------------------

When you browse to the old URL, you will now get redirected to the new URL.