Forum Discussion

Eric_Frankenfie's avatar
Eric_Frankenfie
Icon for Nimbostratus rankNimbostratus
Feb 20, 2014

Rewrite Portion of URI

We are moving one of our web services to a new pool of servers which will contain a different virtual directory structure. The legacy servers used a separate virtual directory for each customer, but the new servers will utilize a common virtual directory. We do not want the customers making any changes and have been asked if we can perform the rewrite.

 

The legacy request looks something like this... https://www.mysite-old.com/CUST_A/Login.aspx?C=98620001&UN=COMS8365&PW=av99er89uj&F=EN

 

The new request will need to be rewritten like this... https://www.mysite-new.com/app.web/APPvirtualDirectory/Login.aspx?C=98620001&UN=COMS8365&PW=av99er89uj&F=EN

 

/CUST_A/ will need to be rewritten with /app.web/APPvirtualDirectory/ but everything after will need to be retained. Also, the legacy server virtual directory names can be any length so I will not be able to replace a fixed number of characters.

 

Any help would be greatly appreciated.

 

6 Replies

No RepliesBe the first to reply