Forum Discussion
Chenco_322726
Oct 08, 2017Nimbostratus
redirect non www to https+www
Hello to all,
Im trying to get ahold of irule to redirect any traffic coming to my website example.com to https://www.example.com[uri]
I've been searching over google for couple of hours now. ...
habib_Khan
Oct 08, 2017Nimbostratus
Hi Chenco,
You can try this below redirection irule.
when HTTP_REQUEST {
if {[string tolower [HTTP::host]] eq "example.com"}
HTTP::respond 301 Location "https://www.[HTTP::host][HTTP::uri]"
}
Let me know if any issue.
Thanks & Regards,
Habib Khan
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