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?
Brad_Parker
Cirrus
Jan 23, 2015Give this a try:
when HTTP_REQUEST {
if { [HTTP::uri] equals "/" } {
HTTP::redirect "https://[HTTP::host]/test/mypage"
}
}
Also, it looks like you're trying to do this on HTTPS, is your virtual server SSL? If so you will require a client SSL profile and an HTTP profile to do this. If you want HTTPS terminated at the server, you will also need to use a server SSL profile.
sandy16
Altostratus
Jan 23, 2015Brad, that worked...thanks.. Cheers !!
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