HTTP redirect working - now trying to setup HTTPS redirect
Hey Everyone!
First and foremost, this is an amazing support community. I'm pretty new to the F5's and a ton of posts have been extremely helpful in guiding me through what configurations are needed. Anyway... onto the meat and potatoes of my post.
I recently created an iRule for URL redirection that is as follows:
when HTTP_REQUEST {if {[HTTP::host] equals "myfriendlyurl.com"}{HTTP::redirect "https://myunfriendlyurl.com"}}
As I'm sure you can tell this is basically saying "Whenever a client goes to http://myfriendlyurl.com redirect them to https://myunfriendlyurl.com"... This is working great.
What I'm trying to accomplish is if a client goes to https://myfriendlyurl.com I want to send them to https://myunfriendlyurl.com.
I can't seem to figure out how to get this working and I haven't been successful in finding community posts on how to accomplish this.
Thanks for taking the time to read this, and any input is greatly appreciated!