Forum Discussion
jato_40959
Nimbostratus
Jun 02, 2010Redirect 301
I have implemented this irule in my system:
when HTTP_REQUEST {
HTTP::respond 301 Location https://[getfield [HTTP::host] ":" 1][HTTP::uri]
}
The irule isn't working, i found this message in logs:
Jun 1 09:49:11 local/tmm1 err tmm1[26096]: 01220001:3: TCL error: HTTP_To_HTTPS_Redirect_301 - Operation not supported. Multiple redirect/respond invocations not allowed (line 1) invoked from within "HTTP::respond 301 Location https://[getfield [HTTP::host] ":" 1][HTTP::uri]"
Jun 1 10:24:44 local/tmm2 err tmm2[26097]: 01220001:3: TCL error: HTTP_To_HTTPS_Redirect_301 - Operation not supported. Multiple redirect/respond invocations not allowed (line 1) invoked from within "HTTP::respond 301 Location https://[getfield [HTTP::host] ":" 1][HTTP::uri]"
Can anyone help me?
Thanx in advance and regards
- The_Bhattman
Nimbostratus
Hi Jato, - Michael_Yates
Nimbostratus
A 301 HTTP Status Code is a "Moved Permanently" message, but you are only doing an HTTP to HTTPS Redirect to the same website.when HTTP_REQUEST { HTTP::respond 301 Location "https://www.differentwebsite.com[HTTP::uri]" }
when HTTP_REQUEST { HTTP::redirect https://[getfield [HTTP::host] ":" 1][HTTP::uri] }
- jato_40959
Nimbostratus
Posted By Michael Yates on 06/02/2010 09:05 AMwhen HTTP_REQUEST { HTTP::respond 301 Location "https://www.differentwebsite.com[HTTP::uri]" }
when HTTP_REQUEST { HTTP::redirect https://[getfield [HTTP::host] ":" 1][HTTP::uri] }
- The_Bhattman
Nimbostratus
Hi Jato, - hoolio
Cirrostratus
Hi Jato, - jato_40959
Nimbostratus
Thanks you so much!! - hoolio
Cirrostratus
Hi Jato, - jato_40959
Nimbostratus
Hi Aaron, - hoolio
Cirrostratus
Then you can send a 301 with the originally requested host and URI via HTTPS:when HTTP_REQUEST { HTTP::respond 301 Location "https://[HTTP::host][HTTP::uri]" }
- jato_40959
Nimbostratus
Hi Aaron,
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