Forum Discussion
sandy16
Altostratus
Jan 23, 2015irule for appending a URI to the URL
Hi experts, i am new with irules. My requirement is -
https://example.com to get re-directed to https://example.com/test/mypage
Please advise?
nathe
Cirrocumulus
Jan 23, 2015few options depending on if there are any more specifics to your use case. here are two:
when HTTP_REQUEST {
HTTP::uri "/test/mypage"
}
or
when HTTP_REQUEST {
if { [HTTP::path] equals "/" } {
HTTP::uri "/test/mypage"
}
}
Check out the iRules wiki for help with any other requirements. Loads of examples to help.
N
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