From the Load Page Details screen, you can add a rule to Remap a URL. The Remap URL rule remaps the URL of content external to the captured pages of a session to a new destination.
You can apply the remap URL rule in situations where the external content is not available or accessible from the original site, and a copy is saved on another server to which you can remap the URL.
Note: The Remap URL rule applies to external content only. It cannot be used to modify the URL of captured pages. This remapping feature simplifies the response modification methods.
Advantages to remapping URLs are:
- You can modify based on content that you can see, instead of working to locate the content to remap.
- You can circumvent potential cross-site scripting issues that can occur in response modification of some sites.
To create a rule to remap a URL:
- From the Portal, select Options > Replay Rules > Edit Rules Profile.
- Click the Raw XML tab to edit the XML.
- Click Save to save the changes to the XML.
- Click the GUI Editor tab, and click Apply Rules.
Like most replay rules, place this rule type within a host profile section, for the host where the content is published:
<HostProfile name="test.sample.com"
<RemapURL id="1"
urlPattern="http://test.sample.com/favicon\.ico"
remapFormat="http://www.cnn.com/favicon.ico" />
</HostProfile>