Forum Discussion
Muntazir_Lala_2
Jan 02, 2019Altostratus
WildCard Redirection of url
hi,
i want to create an irule with following request can anyone help.
I need to publish a url abc-reporting.domain.com
User is requesting the if anyone type anything before abc-report...
- Jan 02, 2019
Solution to my question
when HTTP_REQUEST {
if { not ([ string tolower [HTTP::host]] contains "abc-reporting.domain.com") } { Redirect to below URL HTTP::redirect "; } }
Thanks for your support and suggestion.
Muntazir_Lala_2
Jan 02, 2019Altostratus
Solution to my question
when HTTP_REQUEST {
Check if requested host doesn't EQUAL abc-reporting.domain.com
if { not ([ string tolower [HTTP::host]] contains "abc-reporting.domain.com") } { Redirect to below URL HTTP::redirect "; } }
Thanks for your support and suggestion.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects