Forum Discussion
ghost-rider_124
Nimbostratus
Apr 12, 2014IRULE for redirect request (http to https), append request and rewrite response (http to https)
Hello Experts
I want to write irule for below requirement. Please help me out
1- http://www.abc.com/ -> https://www.abc.com/test/login.aspx (http to https and append test/login.aspx to www....
JRahm
Admin
Apr 12, 2014give this a shot:
ltm policy http.redirects {
controls { forwarding }
requires { http }
rules {
redirect_rules {
actions {
0 {
http-reply
redirect
location https://www.abc.com/test/login.aspx
}
}
conditions {
0 {
http-host
host
values { www.abc.com }
}
1 {
http-uri
values { / }
}
}
ordinal 1
}
}
strategy all-match
}
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