Solved

Redirect Link to Another Website to a Page on Original Website

Posted on 2014-10-22
3
338 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
  • 2
3 Comments
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 500 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

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

If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
A phishing scam that claims a recipient’s credit card details have been “suspended” is the latest trend in spoof emails.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

820 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