Forum Discussion
Jeff_Eskens_428
Nimbostratus
Apr 30, 2015trying to redirect a url
I am trying to redirect a URL from site.domain.com to site.domain.com/subsite. I have the F5 configured for SSL off-loading so anything that come in is redirected from http to https. When a user go...
DEJ_159363
Cirrus
Apr 30, 2015Edited to include loop break/fix
Hello Jeff,
On VIP-80 you'll have the http -> https redirect. On VIP-443 you could use the one below. What issues are you running into?
RULE-x.x.x.x-443
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] equals "site.domain.com" and !([HTTP::uri] starts_with "/subsite") } {
set respond value to 301 or 302 as preferred
HTTP::respond 302 Location "https://site.domain.com/subsite"
}
}
nitass
Employee
May 02, 2015i think you also have to include (check) uri or path in the if-condition. otherwise, it is going to be loop because it redirects to the same fqdn.
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