?
Solved

redirecting technique -- coding default.aspx for the redirect

Posted on 2013-11-26
1
Medium Priority
?
254 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 15

Accepted Solution

by:
Giovanni Heward earned 2000 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
These days, all we hear about hacktivists took down so and so websites and retrieved thousands of user’s data. One of the techniques to get unauthorized access to database is by performing SQL injection. This article is quite lengthy which gives bas…
This video teaches users how to migrate an existing Wordpress website to a new domain.
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.

752 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