Forum Discussion
CSA
Nimbostratus
Mar 23, 2010Re: Adding www. before HTTP::host / regexp matching
Answering myself:
when HTTP_REQUEST {
if { [ string tolower [HTTP::host] ] matches_regex {^\w\w\.domain\.com$} } {
HTTP::redirect "http://www.[HTTP::host]"
}
}
Any remarks are welcome if I did something wrong.
No RepliesBe the first to reply
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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