3

I looking for help making URL rewrite rule for redirecting all urls that start with

http://localhost:13080/saCore/ws/messagebroker[Here something that changes]

to

http://localhost:13080/saCore/ws/messagebroker/MessageBroker.asmx[Here something that changes]

I just to need to push MessageBroker.asmx in the middle of the path after messagebroker part.

Thanks for help.

asked Nov 16, 2012 at 20:52

1 Answer 1

4

This should do the job, you can add it directly to applicationHost.config or use IIS Manager to create the rule:

<rule name="RedirectBroker" stopProcessing="true">
 <match url="^saCore/ws/messagebroker(.*)" />
 <conditions>
 <add input="{HTTP_HOST}" pattern="^localhost$" />
 <add input="{SERVER_PORT}" pattern="^13080$" />
 </conditions>
 <action type="Rewrite" url="/saCore/ws/messagebroker/MessageBroker.asmx{R:1}" appendQueryString="true" />
</rule>
answered Nov 16, 2012 at 21:10

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.