Forum Discussion
mkoushki_127802
Jan 03, 2006Nimbostratus
redirect http://domain.com to http://www.domain.com
Hello
I am looking for simple statment for iRule in v9.x to redirect http://domain.com to http://www.domain.com
please advice
thanks
Colin_Walker_12
Jan 03, 2006Historic F5 Account
The command that you're looking for is HTTP::redirect.
You would use this like:
when HTTP_REQUEST {
if {[HTTP::host] eq "domain.com" } {
HTTP::redirect "http://www.domain.com"
}
}
You can read more about this, and other iRules commands in the manual, here: Click here
-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