Solved

redirecting technique -- coding default.aspx for the redirect

Posted on 2013-11-26
1
238 Views
Last Modified: 2013-12-10
I want to redirect:
https://InventoryPro.dev.FordMotorCo.net/Pages/Default.aspx
without redirecting:
https://InventoryPro.dev.FordMotorCo.net/Pages/Authentication/Login.aspx

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 InventoryPro.dev.FordMotorCo.net).

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,

http://sharepoint/sites/Compliance-COE-NA/Training/default.aspx  
 
?

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:  https://InventoryPro.dev.FordMotorCo.net/Pages/Authentication/Login.aspx).
0
Comment
Question by:kamistry
1 Comment
 
LVL 14

Accepted Solution

by:
Giovanni Heward earned 500 total points
Comment Utility
Try...

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

Open in new window


or

ASP .NET Redirect (Server Side)
<script language="C#" runat="server">
private void Page_Load(object sender, System.EventArgs e)
{
   Response.Status = "301 Moved Permanently";
   Response.AddHeader("Location","http://sharepoint/sites/Compliance-COE-NA/Training/default.aspx");
   Response.End();
}
</script>

Open in new window


or

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

Open in new window


or

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

Open in new window

0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Introduction (All good things must come to an end (http://en.wikipedia.org/wiki/All_Good_Things...)) The original MySQL API (http://php.net/manual/en/book.mysql.php) has gone away, deprecated by PHP in Version 5.5, and removed from PHP in all curre…
Developer tools in browsers have been around for a while, yet they are still heavily underused by developers. Developers still fix html or CSS then refresh page to see effect, or they put alert or debugger in JavaScript and then try again and again …
Learn how to set-up custom confirmation messages to users who complete your Wufoo form. Include inputs from fields in your form, webpage redirects, and more with Wufoo’s confirmation options.
Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now