Hi,
i have a fortiweb 7.4.2. I would like to rewriting this host https://subdomain1.domain.com to
https://subdomain2.domain.com/home/it/home.page. My customer doesn't want the redirect url ma only the rewritng.url.
Thanks.
Nominating a forum post submits a request to create a new Knowledge Article based on the forum post topic. Please ensure your nomination includes a solution within the reply.
Hello @rici1979 ,
You can follow that document to rewrite the URL. If you don't select the redirect option on the Request Action menu, FortiWeb will only do a rewrite URL.
https://docs.fortinet.com/document/fortiweb/7.4.3/administration-guide/961303/rewriting-redirecting
Hi i tried with http header but it doesn't work.
Follow the debug output.
URL Rewriting][Info]: (./waf_module/url_rewrite.c:2699): CLIENT -> SERVER.
[URL Rewriting][Info]: (./waf_module/url_rewrite.c:2639): Request host: [subdomain1.domain.com].
[URL Rewriting][Info]: (./waf_module/url_rewrite.c:2643): Request url: [/].
[URL Rewriting][Info]: (./waf_module/url_rewrite.c:1638): url rewrite policy name: [COLL-rewrite].
[URL Rewriting][Info]: (./waf_module/url_rewrite.c:576): url rewrite rule name: [COLL_rewrite_modulo_offerta_] ,check rule conds.
[URL Rewriting][Info]: (./waf_module/url_rewrite.c:589): the matching url :\
[URL Rewriting][Info]: (./waf_module/url_rewrite.c:704): not matched,and no invert,not matched.
[URL Rewriting][Info]: (./waf_module/url_rewrite.c:576): url rewrite rule name: [COLL_rewrite_portale_vendita] ,check rule conds.
[URL Rewriting][Info]: (./waf_module/url_rewrite.c:589): the matching url :\
[URL Rewriting][Info]: (./waf_module/url_rewrite.c:704): not matched,and no invert,not matched.
[URL Rewriting][Info]: (./waf_module/url_rewrite.c:576): url rewrite rule name: [COLL_offerta_page] ,check rule conds.
[URL Rewriting][Info]: (./waf_module/url_rewrite.c:589): the matching url :\
[URL Rewriting][Info]: (./waf_module/url_rewrite.c:704): not matched,and no invert,not matched.
[URL Rewriting][Info]: (./waf_module/url_rewrite.c:576): url rewrite rule name: [subdomain1.domain.com_COLL] ,check rule conds.
[URL Rewriting][Info]: (./waf_module/url_rewrite.c:584): the matching host :subdomain1.domain.com
[URL Rewriting][Info]: (./waf_module/url_rewrite.c:712): all conditons matched!
[URL Rewriting][Info]: (./waf_module/url_rewrite.c:1684): matched...
[URL Rewriting][Info]: (./waf_module/url_rewrite.c:1687): the pcre capture $0 is :
[URL Rewriting][Info]: (./waf_module/url_rewrite.c:1687): the pcre capture $1 is :
[URL Rewriting][Info]: (./waf_module/url_rewrite.c:1687): the pcre capture $2 is :
[URL Rewriting][Info]: (./waf_module/url_rewrite.c:1687): the pcre capture $3 is :
[URL Rewriting][Info]: (./waf_module/url_rewrite.c:1687): the pcre capture $4 is :
[URL Rewriting][Info]: (./waf_module/url_rewrite.c:1687): the pcre capture $5 is :
[URL Rewriting][Info]: (./waf_module/url_rewrite.c:1687): the pcre capture $6 is :
[URL Rewriting][Info]: (./waf_module/url_rewrite.c:1687): the pcre capture $7 is :
[URL Rewriting][Info]: (./waf_module/url_rewrite.c:1687): the pcre capture $8 is :
[URL Rewriting][Info]: (./waf_module/url_rewrite.c:1687): the pcre capture $9 is :
[URL Rewriting][Info]: (./waf_module/url_rewrite.c:1590): the action is :5
[URL Rewriting][Debug]: (./waf_module/url_rewrite.c:1602): -------- Do URL rewriting for URL "subdomain1.domain.com/" in request direction --------
Matched rule: "subdomain1.domain.com_COLL"
Triggered action: "Rewrite HTTP Header"
$VSERVER_PORT: 47873
[URL Rewriting][Info]: (./waf_module/url_rewrite.c:1217): the new host is : hsubdomain2.domain.com/home/it/home.page
[URL Rewriting][Debug]: (./waf_module/url_rewrite.c:1223): Rewrite Host from "subdomain1.domain.com" to "subdomain2.domain.com/home/it/home.page"
Hello @rici1979 ,
Can you share your rewrite rule with us?
Hi, i'm sorry but it's not possibile to share the url because my custmoer is an italian gov. company.
Thanks.
Select Forum Responses to become Knowledge Articles!
Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.
User | Count |
---|---|
1662 | |
1077 | |
752 | |
446 | |
220 |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2024 Fortinet, Inc. All Rights Reserved.