IIS rewrite from an IIS web site to a site on a SharePoint server.

Hi, we have an old .NET application running on IIS 7 that has been redeveloped in Sharepoint.  
The issue I am having problems with is all the OLD links and favourites that people have lay around.  We can just switch off and break them so need to find some way of redirecting to the same source document but in SharePoint.

For example:
OLD LINK -  http://dontknowhow.domain.com/documents/PatientLeaflets/insulin%20adjustment%20guidelines%20-%20basal%20bolus%20rapid%20acting%20analogue.pdf

We need it to be redirected BY IIS7 on dontknowhow.domain.com  to
NEW LINK - http://sharepoint.domain.com/Documents/insulin%20adjustment%20guidelines%20-%20basal%20bolus%20rapid%20acting%20analogue.pdf

The BOLD bit is the actual document name and stays the same.

The old link could start with ANY of :-

The new link will always start with:-
http://sharepoint.domain.com/Documents  followed by the document name.

Any ideas on how this could be achieved?


LVL 37
Neil RussellTechnical Development LeadAsked:
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.

Mohit NairSenior AssociateCommented:
Try adding an entry in IIS > IIS redirect. There you would find an option to put the old url and redirect to url.
Neil RussellTechnical Development LeadAuthor Commented:
Well ok given the above, can you explain how that is achieved?
Add a redirect is hardly an answer to a question that explain in depth exactly what needs to be achieved.
You'll first need to install Microsoft URL Rewrite Module 2.0 on the IIS running the old .NET application

The rewrite module in IIS7 has a very user-friendly interface. Here's the documentation


Your Pattern will be similar to

And Action similar to

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
Neil RussellTechnical Development LeadAuthor Commented:
Regardless of how I do the rule It seems to be ignored and I get a 404 error for ANY url starting with

Neil RussellTechnical Development LeadAuthor Commented:
With a little work I finally have a working redirect now :D

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 SharePoint

From novice to tech pro — start learning today.

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.