Forum Discussion
Sheldon_17198
Nimbostratus
Feb 24, 2011Redirect all HTTP traffic to HTTPS://domain/owa
Morning All.
I am trying to write a iRule to redirect all traffic hitting a virtual server listening on port 80 to a https://domain.co.uk/owa.
I have been reading through some examples so wanted to sound out my code (little green when it comes to iRules).
when HTTP_RESPONSE {
HTTP::redirect "https://webmail.domain.co.uk/owa"
}
So when a user goes to http://webmail.domain.co.uk/owa its is redirected to https://webmail.domain.co.uk/owa. (I am happy that any request to http://webamail.domain.co.uk is redirected to the https url).
If anyone can shine some light on what I have, if you can explain it if I am wrong as well.
Thank you very much for reading and more thanks if you help me out :-)
Regards
Col.
1 Reply
Sort By
- Chris_Miller
Altostratus
Welcome to the forums.when HTTP_REQUEST { HTTP::redirect "https://[HTTP::host][HTTP::uri]" }
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