Solved

How to redirect user - "http://Site1.com/Test" to "http://Site2.com/Test" - IIS

Posted on 2013-01-17
3
277 Views
Last Modified: 2013-01-17
Hi,

I am using Windows Server 2003. Can you please let me know how to redirect user if he has typed http://Site1.com/Test then he needs to redirect to http://Site2.com/Test ?

Note: Test - is just name. It is NOT a file name like (Test.asp).

Thanks
0
Comment
Question by:milani_lucie
[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
3 Comments
 
LVL 7

Expert Comment

by:ded_ch
ID: 38789582
You can add a redirect rule to your webconfig file.
You will find it in the webroot of your site.

Add this to your rule section:

<rule name="Domain Name Check">
<match url="(.*$)" ignoreCase="true" />
<conditions>
<add input="{HTTP_REFERER}" negate="true" pattern="^$" />
<add input="{HTTP_REFERER}" negate="true" pattern="http://site.ext/.*" />
  </conditions>
<action type="Redirect" url="http://site.ext/{R:1}" redirectType="Permanent" />
</rule>

Open in new window


Simply change the URL values to your liking.
0
 
LVL 10

Accepted Solution

by:
bigbigpig earned 500 total points
ID: 38789588
Create a default document page (index.html, default.html, or whatever you want) and put it in the TEST directory.  In that HTML document put this in the <head> section:

<meta http-equiv="REFRESH" content="0;url=http://site2.com/test">
0
 

Author Comment

by:milani_lucie
ID: 38789642
bigbigpig:

This is the trick i am looking for more than 24 hours. You saved me. Thanks a lot !!!

Thanks
0

Featured Post

What Is Transaction Monitoring and who needs it?

Synthetic Transaction Monitoring that you need for the day to day, which ensures your business website keeps running optimally, and that there is no downtime to impact your customer experience.

Question has a verified solution.

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

If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

734 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