Configuring the Access Gateway to Protect Web Resources 43novdocx (en) 19 February 20101.6.2 Specifying the DNS Names to RewriteThe rewriter parses and searches the Web content that passes through the Access Gateway for URLreferences that qualify to be rewritten. URL references are rewritten when they meet the followingconditions: URL references containing DNS names or IP addresses matching those in the Web serveraddress list are rewritten with the Published DNS Name. URL references matching the Web Server Host Name are rewritten with the Published DNSName.Context CriteriaHTTP Headers Qualified URL references occurring within certain types of HTTP responseheaders such as Location and Content-Location are rewritten. The Locationheader is used to redirect the browser to where the resource can be found. TheContent-Location header is used to provide an alternate location where theresource can be found.JavaScript Within JavaScript*, absolute references are always evaluated for rewriting.Relative references (such as index.html) are not attempted. Absolute paths(such as /docs/file.html) are evaluated if the page is read from a path-based multi-homing Web server and the reference follows an HTML tag. Forexample, the string href=‘/docs/file.html’ is rewritten if /docs is amulti-homing path that has been configured to be removed.HTML Tags URL references occurring within the following HTML tag attributes areevaluated for rewriting:action archive backgroundcite code codebasedata dynscr filterLinkhref longdesc lowsrco:WebQuerySourceHref onclick onmenuclickpluginspage src usemapusermapborderimageReferences An absolute reference is a reference that has all the information needed tolocate a resource, including the hostname, such as http://internal.web.site.com/index.html. The rewriter always attempts torewrite absolute references.The rewriter attempts to rewrite an absolute path when it is the multi-homingpath of a path-based multi-homing service. For example, /docs/file1.htmlis rewritten if /docs is a multi-homing path that has been configured to beremoved.Relative references are not rewritten.Query Strings URL references contained within query strings can be configured for rewritingby enabling the Rewrite Inbound Query String Data option.Post Data URL references specified in Post Data can be configured for rewriting byenabling the Rewrite Inbound Post Data option.