How to use rewrite policy to add text message or links under logon button in Gateway logon page

How to use rewrite policy to add text message or links under logon button in Gateway logon page

book

Article ID: CTX477208

calendar_today

Updated On:

Description

This article describes how to add text message or links to Gateway logon page with RfWebUI based portal theme. The below image is the Gateway logon page for an end user. Links and text message are under Log On button.

image.png

The solution in this article applies to both basic authentication and AAA authentication.  


Instructions

1. Add the following rewrite action and policy.

add rewrite action rw_act_custom_logon_text insert_after_all "HTTP.RES.BODY(300000).SET_TEXT_MODE(IGNORECASE)" q{"<div id=customHelp><p align=\"center\" style=\"color: white; font-size:14px\">Before logon, please refer to the <a href='https://www.citrix.com/' style='color: white; text-decoration: underline;'><strong>guide</strong></a>!</p></div>"} -search q/text("customAuthBottom\">")/

add rewrite policy rw_act_custom_logon_text "HTTP.REQ.URL.CONTAINS(\"/tmindex.html\") || HTTP.REQ.URL.CONTAINS(\"/index.html\")" rw_act_custom_logon_text

2. Bind rewrite policy to Gateway Vserver with response type.

bind vpn vserver Gateway_VS -policy rw_act_custom_logon_text -priority 100 -type RESPONSE