Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Assuming you are configuring the application hosted at <code>/ContactLibrary2.0HTTPS</code> directly (and not the website containing that directory, for example), you may add an exact match for:</p> <pre><code>rest/GetContact </code></pre> <p>with a rewrite url of:</p> <pre><code>Service.svc/rest/GetContact </code></pre> <p>Perhaps you wish to rewrite <em>every</em> action of Service.svc, however; then you would need a regular expression match for:</p> <pre><code>^rest/.*$ </code></pre> <p>with a rewrite url of:</p> <pre><code>Service.svc/{R:0} </code></pre> <p><strong>UPDATE</strong></p> <p>Assuming you also need to remove that string from the urls of your HTML pages, you would need to couple the aforementioned inbound rule with a new outbound rule, applied to the files you are interested in.</p> <p>To do that, please:</p> <ol> <li>add a new outbound rule to your website and give it a name;</li> <li>add a new precondition with two rules (matching any of them): <ul> <li><code>{RESPONSE_CONTENT_TYPE}</code> matches <code>text/html</code></li> <li><code>{RESPONSE_CONTENT_TYPE}</code> matches <code>application/xhtml+xmll</code></li> </ul></li> <li>configure the rule to match the <em>response</em> scope, matching the content within <strong>A</strong> tags: <ul> <li>should match the pattern using a regular expression;</li> <li>with this pattern: <code>^(.*)(/Service\.svc/)(.*)$</code></li> <li>case insensitive;</li> </ul></li> <li>configure the action to be a <em>rewrite</em>, with this value: <code>{R:1}{R:3}</code></li> </ol>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload