Forum Discussion
Pav_70755
Oct 27, 2008Nimbostratus
https re-directs
Hi,
I am trying to re-direct two https secure sites, currently there is an i-rule in place to re-direct the standard sites:
elseif { [HTTP::host] == "www.url.com" } {
...
James_Quinby_46
Oct 28, 2008Historic F5 Account
Pav -
Since the https site would be on its own Virtual Server, the iRule that would accomplish this would be largely the same as the one you've listed above. There is more information at:
http://devcentral.f5.com/wiki/default.aspx/iRules/HTTPToHTTPSRedirect_301.html
...but it could be accomplished with something like:
when HTTP_REQUEST {
if { [TCP::local_port] == 80 }{
HTTP::respond 301 Location "https://www.newurl.com"
}
}
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