Forum Discussion
iraheel_135195
Apr 14, 2014Nimbostratus
iRule Redirect isnt working
I am new to iRules , i want to set a redirect for my webapp. So when a user hits wcp.xx.com/wxx he is redirected to pushdev.xx.com/wxx & below is the iRule i have in place
when HTTP_REQUEST {
...
nitass_89166
Noctilucent
is it possible i can do the URL masking with this ? So users can always see wcp.xx.com\wxx on the address bar
if you do not want to change display url in browser, you can use HTTP::header and/or HTTP::uri to change HTTP header (e.g. host header) and URI when sending request to pool member.
iraheel_135195
Apr 15, 2014Nimbostratus
when HTTP_REQUEST {
So where do i have to change the header in place of uri
if {[string tolower [HTTP::host]] equals "wcp.xx.com" and [string tolower [HTTP::uri]] starts_with "/wxx" } {
HTTP::redirect "https://pushdev.xx.com/[HTTP::uri]"
}
}
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