Forum Discussion
yihwen_100254
Jun 14, 2011Nimbostratus
Generic 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 ...
hooleylist
Jun 15, 2011Cirrostratus
It looks like your client is making requests with no host header. If that's the case, then you couldn't redirect them using https://[HTTP::host][HTTP::uri] or you'd get an invalid redirect to https:/// like is shown in your logs. Are you sure the last example I posted doesn't work? It tested fine in per the logs I posted.
Also, HTTP::respond 302 Location and HTTP::redirect result in the same 302 response being sent to the client. So it doesn't make much difference which method you use.
Aaron
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