Example 7: Marketing Keyword Redirection 编辑

The marketing department at Example Inc. wants to set up simplified URLs for certain predefined keyword searches on the company’s Web site. For these keywords, it wants to redefine the URL as shown below.

  • External URL:

http://www.example.com/\<marketingkeyword\>

  • Internal URL:

http://www.example.com/go/kwsearch.asp?keyword=\<marketingkeyword\>

To set up redirection for marketing keywords, you would create a rewrite action with the values in the following table.

Action NameType of Rewrite ActionExpression to choose target locationString expression for replacement text
Action-Rewrite-Modify_URLINSERT_BEFOREHTTP.REQ.URL.PATH.GET(1)"”go/kwsearch.aspkeyword=”l”

You would then create a rewrite policy with the values in the following table.

Policy NameAction NameUndefined ActionExpression
Policy-Rewrite-Modify_URLAction-Rewrite-Modify_URLNOREWRITEHTTP.REQ.HOSTNAME.SERVER.EQ(“www.example.com”)

Finally, you would bind the rewrite policy, assigning it a priority of 800. Unlike the previous rewrite policies, this policy should be the last to be applied to a request that matches its criteria. For this reason, Citrix ADC administrator sets its Goto Priority Expression to END.

Any request using a marketing keyword is redirected to the keyword search CGI page, whereupon a search is performed and all remaining policies are skipped.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据

词条统计

浏览:60 次

字数:2161

最后编辑:7 年前

编辑次数:0 次

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文