Forum Discussion
vinod1 Altostratus
Altostratus
Nov 22, 2022iRULE - Redirect irule - Help required
 Hello ,   I am working on a redirect request using an iRULE  User has requested the following redirect,  https://abc.xyz.com/Projectsite/*   to  redirect to    https://bbb.xyz.com/page/projectdocs-us...
- Nov 22, 2022Hi vinod1 , 
 you can do it without wildcard in uri , it is sufficient to use "starts_with" operator.
 Please check this :when HTTP_REQUEST { if { [HTTP::host] equals "abc.xyz.com" && [HTTP::uri] starts_with "/Projectsite/"}{ HTTP::redirect "https://bbb.xyz.com/page/projectdocs-users/" } }I hope it fits with your requirements 
 Regards
Nov 22, 2022
Hi vinod1 , 
you can do it without wildcard in uri , it is sufficient to use "starts_with" operator. 
Please check this : 
when HTTP_REQUEST {
   if { [HTTP::host] equals "abc.xyz.com" && [HTTP::uri] starts_with "/Projectsite/"}{
   HTTP::redirect "https://bbb.xyz.com/page/projectdocs-users/"
   }
}I hope it fits with your requirements 
Regards 
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