网关从 Internet 门户获取内容。在将内容发送到浏览器之前,它将网关 URI 追加到现有 URI 之前,使来自浏览器的后续 URI 请求可到达网关。
例如,如果有某位用户尝试用以下方式访问某台 Internet 机器上的 HTML 页面:
<a href="http://mymachine.intranet.com/mypage.html>"
重写器会在该 URL 前加上一个指向网关的引用,如下所示:
<a href="https://gateway.company.com/http://mymachine.intranet.com/ mypage.html>"
当用户单击与该锚定点相关联的某个链接时,浏览器便会与网关联络。网关会从 mymachine.intranet.com 中获取 mypage.html 的内容。
网关使用若干规则来确定要重写已获取网页的哪些要素。