?
Solved

Redirect Link to Another Website to a Page on Original Website

Posted on 2014-10-22
3
Medium Priority
?
357 Views
Last Modified: 2014-10-23
Hello,

Is it possible to redirect a link to another website to a page on the original website using IIS URL Rewrite Module or an .htaccess file?

We have some pages on our website that contain links that take users to separate application servers.  I've been asked if it is possible to set up some redirects that could be enabled if our application servers are down so that when a user clicks on a link that would take them to the application server they would get redirected to a page on the original website notifying them that the service is temporarily unavailable.

For example any links on the website abc.com that point to xyz.com get redirected to abc.com/service-temporarily-unavailable

Please advise if this is possible.  If so, what would an example rule be based on the example above?

Thanks.
0
Comment
Question by:COV-Webmaster
[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
  • 2
3 Comments
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 2000 total points
ID: 40399269
I don't think you can do that.  When the user clicks on the link, it is in their browser, not on your server, so you don't have the ability to re-direct at that point.  When they click on the link, their browser will try to go to xyz.com and time-out if it's not available.  It will not involve abc.com at all.
0
 

Author Comment

by:COV-Webmaster
ID: 40399637
That's what I thought as well.  I just wanted to get confirmation that there wasn't a way to do this.

Thanks.
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 40400152
You're welcome, glad to help.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses
Course of the Month14 days, 6 hours left to enroll

800 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