Forum Discussion
Can't call after responding - ERR_NOT_SUPPORTED invoked from within "HTTP::host"
Thank you for your anser,
this is the IRule who i used and i have alwayse the same problems with all hosts.
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] contains "mysite.com"} {
if {[HTTP::has_responded]}{return}
#log local0. "[HTTP::host] [HTTP::uri]"
HTTP::respond 301 Location "https://[HTTP::host][HTTP::uri]"
regsub -all {:\d*$} [HTTP::host] "" host
HTTP::redirect https://$host[HTTP::uri]
return
}
}
Hi mika,
Would you try using the "HTTP::has responded" line, before if statement?
when HTTP_REQUEST {
if {[HTTP::has_responded]} { return }
if {[string tolower [HTTP::host]] contains "mysite.com"} {
HTTP::respond 301 Location "https://[HTTP::host][HTTP::uri]"
return
}
}Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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