Forum Discussion
dlogsdonmd
Nimbostratus
Jan 09, 2017iRule URL/URI redirect question
Hello, we're implementing Jira in our environment and we want to redirect users and agents to different URIs. I'm trying to implement a rule to do the below:
If user enters: http://support.domain....
TayF5un_246984
Nimbostratus
Jan 09, 2017Hi, you can use irule shown below;
when HTTP_REQUEST {
if { ([HTTP::host] eq "support.domain.org") and ([HTTP::uri] starts_with "/customers") } { HTTP::redirect "https://support.domain.org/servicedesk/customer/portals"
} elseif { [HTTP::uri] starts_with "/agents" } {
HTTP::redirect "https://support.domain.org/secure/Dashboard.jspa"
} else {
HTTP::respond 404 content "Unrecognized request to [HTTP::uri]" "Content-Type" "text/html"
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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