Forum Discussion
yihwen_100254
Nimbostratus
Jun 13, 2011Generic iRule to redirect domain.com to www.domain.com
Hi
I am planning to create an generic iRule to perform a http://domain.com to https://www.domain.com I know in the F5 v10.x.x, there is a _sys_https_redirect and that will actually redirect ...
yihwen_100254
Nimbostratus
Jun 14, 2011Hi
I also check the default _sys_https_redirect iRule
The code is
when HTTP_REQUEST {
set host [HTTP::host]
HTTP::respond 302 Location "https://$host/"
}
Is it better to use HTTP::respond 302 Location "https://$host/"
or HTTP::redirect "https://[HTTP::host][HTTP::uri]"
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