Forum Discussion
I-rule redirect advise
I tried combining like this below and but still get a 404 error on the 2nd part of the i-rule. I go straight to that url and it works.
when HTTP_REQUEST {
if ![HTTP::has_responded] {
#set request [HTTP::uri]
if {[string tolower [HTTP::host]] equals "ccsweb.lanl.gov" and ([string tolower [HTTP::uri]] eq "/") } {
# HTTP::respond 301 Location "https://cta.lanl.gov" Strict-Transport-Security "max-age=31536000"
HTTP::redirect https://cta.lanl.gov
} elseif {[string tolower [HTTP::host]] equals "https://ccsweb.lanl.gov/~pakin" and ([string tolower [HTTP::uri]] eq "/~pakin") } {
# HTTP::respond 301 Location "https://cta.lanl.gov" Strict-Transport-Security "max-age=31536000"
HTTP::redirect https://lanlexperts.elsevierpure.com/en/persons/scott-d-pakin
return
}
}}
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