Forum Discussion
zhaleh_329474
Jul 27, 2018Nimbostratus
Http 301 and version Http 1.1
Hello I want to redirect http to https with response status code 301 and http version 1.1 Id rather perform this with policy than irule...if its possible ...and if not how can i use irule in this case? Thanks for help
- rob_carrCirrocumulus
You can use the HTTP::respond command to send an 301/HTTP 1.1 response.
Here is a solution that uses a Local Traffic Policy and iRule to accomplish the task.
This works for me:
when HTTP_REQUEST { HTTP::respond 301 -version 1.1 Location https://[getfield [HTTP::host] : "1"][HTTP::uri] }
- zhalehNimbostratus
Tank you for help me :)))))
Can I have your phone number?
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