Jason_40769
Jul 12, 2011Nimbostratus
redirect that passes all other traffic
I have been trying to create an irule that will redirect the primary site from its http version to its https version but still allows http subsite traffic to pass
For example
when HTTP_REQUEST {
if { [HTTP::host] == "mysite.fun.com"}{
HTTP::redirect "https://mysite.fun.com[http_uri]"
}
}
-------
So if someone types http://mysite.fun.com i want them to go to https://mysite.fun.com
but if someone types http://mysite.fun.com/players i want them to go to http://mysite.fun.com
please advise