Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a legacy application that I am now replacing with .Net.

Requests to that legacy application look like this: h ttp://www.mywebsite.com/scripts/mgrqispi.dll?appname=app&prgname=prg&....

I would like to set the iis in a way that will automatically redirect them to the following url: h ttp://www.mywebsite.com/myAspPage.aspx?appname=app&prgname=prg&....

Note that it's important for me to keep the url parameters.

Also note, that I don't care if it's redirect to the client - or if I can just tell the iis to redirect the request itself.

share|improve this question
add comment

1 Answer 1

I would suggest you are managing the redirection on the server not on the clients. (Different Browsers and the like will make this a pretty error-prone job)

Adressing the problem like I would do it with apache I'll think of some URL Rewriting. ISAPI_Rewrite (http://www.helicontech.com/isapi_rewrite/) might be what you are looking for.

An example (untested):

RewriteEngine On
RewriteBase /
RewriteRule ^/scripts/mgrispi.dll(.+)$ http://www.mywebsite.com/myAspPage.aspx$1 [NC]
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.