mikeshermanit_2
Jan 11, 2017Nimbostratus
iRule to add www to https traffic?
I have an iRule that looks like this:
when HTTP_REQUEST { if { [HTTP::host] equals "mywebsitehere.com" } { HTTP::respond 301 Location ".[HTTP::host][HTTP::uri]" } }
The problem is that what happens is I get http://www.mywebsitehere.com not https://www.mywebsitehere.com.
So my rule is adding the www which is what I want but not maintaining the https.
Anyone know what I'm doing wrong?
This rule is being applied to a VS that is listening for https traffic.