Sun Java System Portal Server 7.1 Technical Reference

Prefixing the Gateway URL to an Existing URL

In an implementation with a gateway such as the Sun Java System Portal Server 7.1 SRA, the gateway acts as a proxy for the client and accesses intranet sites and returns responses to the client. The Rewriter translates URLs in downloaded pages so that they point back to the gateway rather than to the original site by prefixing the gateway URL to the existing URL.

For example, if a user tries to access an HTML page on mymachine using the following URL:


<a href="http://mymachine.intranet.com/mypage.html>

The Rewriter prefixes this URL with a reference to the gateway as follows:


<a href="https://gateway.company.com/http://mymachine.intranet.com/mypage.html>

When a user selects a link associated with this anchor, the browser contacts the gateway. The gateway fetches the content of mypage.html from mymachine.intranet.com.

See the Sun Java System Portal Server 7.1 SRA Administration Guide for more information on using the Rewriter to prefix a gateway URL to an existing URL.