Forum Discussion
brad_scherer_11
Nimbostratus
May 05, 2006another challanging rediret
We terminate SSL on the F5 for this site. The backend is http over 7678 to the servers.
when HTTP_REQUEST {
if { [HTTP::host] equals "mywebsite.mydomain.com" }{
HTTP::redirect "https://mywebsite.mydomain.com/index.html
} elseif { [HTTP::uri] equals "/help" }
HTTP::redirect "https://mywebsite.mydomain.com/help/index.html"
} else {
pool WEB_POOL
}
What we want to do is add index.html to all https requests.
Does it look like this rule would work for that.
- Colin_Walker_12Historic F5 AccountIt looks like you're pretty close. You might want to do a couple things different.
when HTTP_REQUEST { if { not ( [HTTP::uri] ends_with "/" ) } { set newURI "[HTTP::uri]/index.html" } else { set newURI "[HTTP::uri]index.html" } HTTP::uri $newURI }
- brad_scherer_11
Nimbostratus
Thanks Colin. - Deb_Allen_18Historic F5 AccountIf you can't fix your app to send https or relative links, you can use the stream profile to do a content replacement for all proxied links.
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