Solved

redirecting technique -- coding default.aspx for the redirect

Posted on 2013-11-26
1
253 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 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

Get Actionable Data from Your Monitoring Solution

Your communication platform is only as good as the relevance of the information you send. Ensure your alerts get to the right people every time with actionable responses. Create escalation rules that ensure everyone follows the process and nothing is left to chance.

Question has a verified solution.

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

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this. Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it i…
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…
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…
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to choose which pages of your form are visible to your users based on their inputs. The page rules feature provides you with an opportunity to create if:then statements for y…

690 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