[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

redirecting technique -- coding default.aspx for the redirect

Posted on 2013-11-26
1
Medium Priority
?
258 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

Survive A High-Traffic Event with Percona

Your application or website rely on your database to deliver information about products and services to your customers. You can’t afford to have your database lose performance, lose availability or become unresponsive – even for just a few minutes.

Question has a verified solution.

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

Using Quotation Marks in PHP This question (http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/Q_28217211.html) seems to come up a lot for developers who are new to PHP.  And it got me thinking, "How can we explain the rule…
It’s a strangely common occurrence that when you send someone their login details for a system, they can’t get in. This article will help you understand why it happens, and what you can do about it.
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.

656 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