Forum Discussion
Matt_Sitati_644
Nimbostratus
Dec 05, 2008simple iRule
Very new to iRules.
How would i redirect http://domain.com to http://www.domain.com
JRahm
Admin
Dec 05, 2008Try this:
when HTTP_REQUEST {
if { [HTTP::host] equals [domain [HTTP::host] 2] } {
HTTP::redirect www.[HTTP::host]
}
}
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
