Forum Discussion
1000blocks
Nimbostratus
Jul 07, 2016301 iRule redirection generating an extra 301 status code?!?
Hi,
We have this iRule in place for 301 redirection...
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] eq "sitename.com" } then {
HTTP::respond 301 Location ...
Yann_Desmarest
Cirrus
Jul 07, 2016Can you add logging information to the irule and check in ltm logs (/var/log/ltm in cli or System >> Logs >> Local Traffic in GUI) :
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] eq "sitename.com" } {
log local0. "vs_name=[virtual], 301 redirect to https://www.sitename.com[HTTP::uri]"
HTTP::respond 301 Location "https://www.sitename.com[HTTP::uri]" Test TestRedirect Connection Close
}
}
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