This content has been machine translated dynamically.
Dieser Inhalt ist eine maschinelle Übersetzung, die dynamisch erstellt wurde. (Haftungsausschluss)
Cet article a été traduit automatiquement de manière dynamique. (Clause de non responsabilité)
Este artículo lo ha traducido una máquina de forma dinámica. (Aviso legal)
此内容已经过机器动态翻译。 放弃
このコンテンツは動的に機械翻訳されています。免責事項
이 콘텐츠는 동적으로 기계 번역되었습니다. 책임 부인
Este texto foi traduzido automaticamente. (Aviso legal)
Questo contenuto è stato tradotto dinamicamente con traduzione automatica.(Esclusione di responsabilità))
This article has been machine translated.
Dieser Artikel wurde maschinell übersetzt. (Haftungsausschluss)
Ce article a été traduit automatiquement. (Clause de non responsabilité)
Este artículo ha sido traducido automáticamente. (Aviso legal)
この記事は機械翻訳されています.免責事項
이 기사는 기계 번역되었습니다.책임 부인
Este artigo foi traduzido automaticamente.(Aviso legal)
这篇文章已经过机器翻译.放弃
Questo articolo è stato tradotto automaticamente.(Esclusione di responsabilità))
Translation failed!
示例 9:主页重定向
New Company, Inc. 最近收购了一个较小的竞争对手,即采购公司,并希望将采购公司的主页重定向到自己网站上的新页面,如下所示。
若要将请求重定向到“已购买的公司”主页,您将使用下表中的值创建重写操作。
操作名称 | 重写操作的类型 | 选择目标引用的表达式 | 替换文本的字符串表达式 |
---|---|---|---|
Action-Rewrite-Replace_URLr | REPLACE | HTTP.REQ.URL.PATH_AND_QUERY | “/products/page.htm” |
Action-Rewrite-Replace_Host | REPLACE | HTTP.REQ.HOSTNAME | “新公司” |
然后,您将使用下表中的值创建重写策略。
策略名称 | 操作名称 | 未定义的操作 | 表达式 |
---|---|---|---|
Policy-Rewrite-Replace-None | Action-Rewrite-Replace-None | NOREWRITE | !HTTP.REQ.HOSTNAME.SERVER.EQ(“www.purchasedcompany.com”) |
Policy-Rewrite-Replace-Host | Action-Rewrite-Replace_Host | NOREWRITE | HTTP.REQ.HOSTNAME.SERVER.EQ(“www.purchasedcompany.com”) |
Policy-Rewrite-Replace-URL | Action-Rewrite-Replace_URL | NOREWRITE | HTTP.REQ.IS_VALID |
最后,您将全局绑定重写策略,将第一个优先级为 100,第二个优先级为 200,第三个优先级为 300。这些策略应该是应用于符合条件的请求的最后一个策略。因此,将第一个和第三个策略的 goto 表达式设置为 END,将第二个策略设置为 300。这可确保正确处理所有剩余请求。
现在,对被收购公司旧网站的请求将重定向到新公司主页上的正确页面。
共享
共享
在本文中
This Preview product documentation is Citrix Confidential.
You agree to hold this documentation confidential pursuant to the terms of your Citrix Beta/Tech Preview Agreement.
The development, release and timing of any features or functionality described in the Preview documentation remains at our sole discretion and are subject to change without notice or consultation.
The documentation is for informational purposes only and is not a commitment, promise or legal obligation to deliver any material, code or functionality and should not be relied upon in making Citrix product purchase decisions.
If you do not agree, select Do Not Agree to exit.