Forum Discussion
Edgar_Palamarch
Nimbostratus
Jun 14, 2012Redirect from non WWW to WWW host name
Hello,
I need a redirect from http://mySite.com to http://www.mySite.com The site is in ASP code, and developers couldn't do anything about the redirect. Is such a thing possible in iRule. ...
Michael_Yates
Nimbostratus
Jun 14, 2012Hi Edgar,
The "ne" is "not equal". You can also use an "!".
It can be expressed several different ways:
if {[string tolower [HTTP::host]] ne "www.mysite.com"} {
or
if {!([string tolower [HTTP::host]] ne "www.mysite.com")} {
or
if {[string tolower [HTTP::host]] != "www.mysite.com"} {
Hope this helps.
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