Forum Discussion
Jason_40769
Nimbostratus
Apr 18, 2011Subdomain Redirect
I am trying to redirect subdomain and a domain name to have www but the F5 doesn't recognize the subdomain redirect. What I have: when HTTP_REQUEST { if { [HTTP::...
Colin_Walker_12
Apr 18, 2011Historic F5 Account
I think what you're looking for is:
when HTTP_REQUEST {
if {[HTTP::host] eq "domain.com" } {
if {[HTTP::uri] eq "/member"} {
HTTP::redirect "http://www.domain.com/member"
} else {
HTTP::redirect "http://www.domain.com"
}
}
}
Colin
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