Ashraf1
Feb 11, 2020Nimbostratus
iRules appending after url
Hello F5 !!!
I am newbie in the world of load balancing, apologies if I am posting a silly question.
Recently I have published a https website, created a iRule to redirect from http to https using below
when HTTP_REQUEST {
if {[HTTP::host] equals "abc.com"}
{
HTTP::redirect https://[HTTP::host][HTTP::uri]
}
else
{
HTTP::redirect "https://abc.com/[HTTP::uri]"
}
}
Now I have a requirement to append a string after the url, example if some user is visiting abc.com, he should be redirected to https://abc.com/something.
Thanks in advance.