Forum Discussion
Mike_Wethington
May 01, 2009Nimbostratus
Redirect domain.com to www.domain.com
When users type http://domain.com i need to redirect them to http://www.domain.com, how do i do this?
JRahm
May 12, 2009Admin
An alternative to the string match, though I'm not sure which is more optimal:
when HTTP_REQUEST {
if { [HTTP::host] equals [domain [HTTP::host] 2] } {
HTTP::redirect "http://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