Need to have a site redirect to a new virtual directory

Posted on 2013-10-20
Medium Priority
Last Modified: 2013-10-20

There is a link on my clients site that goes to  www.xxxxxx.com/clients/login.aspx. This link is/was hosted on a server at my clients office. I removed this old server and the application that /clients/login.aspx was going to.  Then I had to install a new server and install a new application for their customers to log into, however it created  the site www.xxxxx.com/onlinebooking.  

Is there a way within IIS to create a page or virtual directory so that when it receives the request for www.xxxx.com/clients/login.aspx that it automatically redirects to www.xxxxx.com/onlinebooking?

I would request the webhost company update the site with the new link, but it would be cost prohibitive and the client will be moving to a new host in the near future.

Question by:bhodge10
  • 2
  • 2
LVL 18

Expert Comment

by:Andrej Pirman
ID: 39586680
As I understand, you have web page OUTSIDE your local site, so you cannot do it with IIS on your local side.
The easiest way to do that is to create a file /clients/login.aspx and put plain HTML META redirect:
  <meta http-equiv="refresh" content="0;url=http://www.xxxxx.com/onlinebooking/" />

Open in new window

LVL 14

Expert Comment

ID: 39586697
you could also install URL REWRITE (http://www.iis.net/downloads/microsoft/url-rewrite)

and create a rule for it, though this would be more useful if you are wanting to forward multiple pages

Labsy post would be easiest for 1 page

Author Comment

ID: 39586726
It would be for 1 page. So stupid question, how do I go about adding a new page /clients? I assume I can just use notepad to create the login.aspx file, correct?
LVL 14

Accepted Solution

brendanmeyer earned 2000 total points
ID: 39586735
clients would just be a folder

you wouldn't need a virtual directory

Author Closing Comment

ID: 39586763
That's what was tripping me up, the virtual directory. I added the folder and then the file and now it redirects. Thank you for helping!

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Understanding the various editions available is vital when you decide to purchase Windows Server 2012. You need to have a basic understanding of the features and limitations in each edition in order to make a well-informed decision that best suits …
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
This tutorial will walk an individual through the steps necessary to configure their installation of BackupExec 2012 to use network shared disk space. Verify that the path to the shared storage is valid and that data can be written to that location:…
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…

619 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