redirecting technique -- coding default.aspx for the redirect

I want to redirect:
without redirecting:

If I do that through DNS, then I don't think it can be done, becuase, both pages will be rerouted (it will essentially remap

The solution I think, is to rename Default.aspx into OldDefault.aspx, and create another Default.aspx that does the reroute.

What would be the content of Default.aspx to allow such a reroute to, say,


Just looking for the textual content.

If I am mistaken, and this would not accomplish my goal, then please just share with me how I can accomplish the redirect and leave the backdoor open for us to analyze the website (Backdoor:
Who is Participating?
Giovanni HewardConnect With a Mentor Commented:

ASP Redirect (Server Side)
<%@ Language="VBScript" %>
Response.Status="301 Moved Permanently"
Response.AddHeader "Location", "http://sharepoint/sites/Compliance-COE-NA/Training/default.aspx"

Open in new window


ASP .NET Redirect (Server Side)
<script language="C#" runat="server">
private void Page_Load(object sender, System.EventArgs e)
   Response.Status = "301 Moved Permanently";

Open in new window


HTML meta tag redirect (Client Side)
      <meta http-equiv="refresh" content="0; url=http://sharepoint/sites/Compliance-COE-NA/Training/default.aspx">
   <p>Please follow <a href="http://sharepoint/sites/Compliance-COE-NA/Training/default.aspx">this link</a>.</p>

Open in new window


Frame redirect (Client Side)
<frameset rows="100%">
  <frame src="http://sharepoint/sites/Compliance-COE-NA/Training/default.aspx">
       Please follow <a href="http://sharepoint/sites/Compliance-COE-NA/Training/default.aspx">this link</a>.

Open in new window

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.