Forum Discussion
STORN69_148037
Nimbostratus
Sep 22, 2017irule redirect http to https://www. but not if www?
This should be easy for you guys.
I"m still a little new to iRules. I believe this is a simple one, but time constraints are leading me to post this here:
I'm need to do a 301 redirect for ...
Ryannnnnnnnn
Altocumulus
Sep 22, 2017Heya,
You can apply the following to your HTTP virtual server if you want to redirect all requests to HTTP along with the addition of "; :
when HTTP_REQUEST {
HTTP::respond 301 Location "https://www.[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