Need to have a site redirect to a new virtual directory


There is a link on my clients site that goes to 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  

Is there a way within IIS to create a page or virtual directory so that when it receives the request for that it automatically redirects to

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.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Andrej PirmanCommented:
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=" />

Open in new window

you could also install 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
bhodge10Author Commented:
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?
clients would just be a folder

you wouldn't need a virtual directory

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
bhodge10Author Commented:
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!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Server OS

From novice to tech pro — start learning today.