Share via


Replacing absolute links in Web pages

After you create a Web publishing rule in Microsoft Forefront Threat Management Gateway, you may want to enable link translation for the rule and define mappings for replacing absolute links on Web pages that are published by the rule.

  1. In the Forefront TMG Management console tree, click Firewall Policy.

  2. In the details pane, click the applicable rule.

  3. On the Tasks tab, click Edit Selected Rule.

  4. On the Link Translation tab, verify that Apply link translation to this rule is selected.

  5. If you want links from Web pages that contain other character sets to be translated, select Also apply link translation to Web content using this character set, and select a character set from the drop-down list.

  6. To configure local mappings (add links to the local link translation dictionary), click Configure. For each new mapping, do the following:

    1. Click Add.
    2. In Replace this text, type a string that will be translated. Typically, this string contains the name of an internal site or server that is inaccessible to external clients.
    3. In With this text, type the text that will replace the string. Typically, this text contains the name of a host that is accessible to external clients, such as the fully qualified domain names (FQDN) of the Forefront TMG computer.
    4. Click OK.
  7. Click OK, and then click OK to close the dialog box.

  8. In the details pane, click the Apply button to save and update the configuration, and then click OK.

Notes

  • When you select Apply link translation to this rule, a link translation dictionary is automatically created. In most cases, you will not need to add more entries to the default dictionary.
  • Forefront TMG only performs link translation on HTML document strings, such as internal computer names, that are specified in UCS Transformation Format 8 (UTF-8) format.
  • When you add a local mapping, do not include a slash at the end of the string to be replaced.
  • When you select Apply link translation to this rule, internal server names in links are translated to the public name. Local and global translation mappings are applied to this publishing rule.
  • Link translation is not applied to rules that publish FTP servers.
  • When link translation is enabled, the rule must specify an explicit public domain name. The domain name cannot include an asterisk (*).
  • When adding support for a code page using the Forefront TMG Software Development Kit (SDK), make sure that it is a supported code and installed on all array members. In the case of adding or changing support for a code page via a Remote Management computer, make sure that code page support is installed on all array members and Remote Management computers.
  • Changes that you make to the properties of a Web publishing rule or the Web listener associated with it apply only to new connections.
  • For more information about link translation, see About link translation.