Forum Discussion
Wales_113331
Nimbostratus
Aug 07, 2014irule combination for response and redirect
i have an irule on HTTP vs redirecting HTTP to HTTPS which works fine for me. For this redirects the response from the F5 is a 302 i want to change this to a 301 and i want to do this with one irule. The redirect applies to all url and the response code change applies to a specific url.
1 Reply
- nathe
Cirrocumulus
How about checking this link:
The example in this link is as follows:
when HTTP_REQUEST { HTTP::respond 301 Location "https://[getfield [HTTP::host] : 1][HTTP::uri]" }
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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