May 27, 2011 - General Web Development    Comments Off on GoDaddy – Create a redirect to a subfolder

GoDaddy – Create a redirect to a subfolder

GoDaddy has elected to not allow you to change the ASP.Net permissions on your root folder, and 404 redirects won’t work for visiting http://yourdomain.com/.

If your blog or other subfolder is the primary content on your site, and this is the first thing that you’d like visitors to see, you can configure a default.aspx that will redirect people to http://yourdomain.com/subfolder.

Here’s how to do it

<%@ Page language="c#" %>
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
 <html>
 <head runat="server">
 <title></title>
 <meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
 <meta name="CODE_LANGUAGE" Content="C#">
 <meta name=vs_defaultClientScript content="JavaScript">
 <meta name=vs_targetSchema content="http://schemas.microsoft.com/intellisense/ie5">
 </head>
 <body MS_POSITIONING="GridLayout">
 <form id="Form1" method="post" runat="server">
 <% Response.Redirect("http://www.yourdomain.com/subfolder"); %>
 </form>
 </body>
 </html>