Forum Discussion
DM_5174
Nimbostratus
Jun 20, 2007Need urgent Redirect help!!!!
Hi all -
I have a problem here with redirecting the URL.
1. when users come in with http, the rule below needs to do a https redirect. This is working so far, however, when I try t...
Colin_Walker_12
Jun 20, 2007Historic F5 Account
If all you're trying to do is modify the above rule so that all mysite.com/site1 requests go directly to the www_apache pool, you'd want something like this:
when HTTP_REQUEST {
if { ([HTTP::host] ends_with "mysite.com") and ( [HTTP::uri] starts_with "/site1") } {
pool www_apache
} else {
HTTP::redirect https://[HTTP::host][HTTP::uri]
}
}HTH,
Colin
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