Solved

redirecting technique -- coding default.aspx for the redirect

Posted on 2013-11-26
1
241 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
ID: 39677606
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Prevent SQL Injection 4 104
Failure of Asp.Net site to recognize Devexpress DLL 3 61
SharePoint 2013 6 18
IIS: Multiple user recognition behid one IP 2 67
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 …
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
Wufoo.com provides powerful tools for surveying targeted groups, and utilizing data from completed surveys to find trends, discover areas of demand or customer expectation, and make business decisions on products or services.

932 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

18 Experts available now in Live!

Get 1:1 Help Now