Access Gateway configurations generally require HTML rewriting because the web servers are not aware that Access Gateway machine is obfuscating their DNS names. URLs contained in their pages must be checked to ensure that these references contain the DNS names that the client browser understands. The client browsers are not aware that Access Gateway is obfuscating the DNS names of the resources they are accessing.
The URL requests coming from the client browsers that use published DNS names must be rewritten to the DNS names that the web servers expect.
Figure 2-9 HTML Rewriting