Forum Discussion
adam21983_1462
Nimbostratus
Jan 18, 2013Simple URL Redirect Question
Hello Everyone,
Sorry if this is overly simple but I am driving myself crazy trying to get this to work. In the below iRule my redirect works if the request is sent to http://redirecttes...
Jnon
Nimbostratus
Jan 19, 2013As mentioned above - it should work if you eliminate the www and change to contains as follows
when HTTP_REQUEST {
if { ([string tolower [HTTP::host]] contains "redirecttest.mysite.com") } {
HTTP::redirect http://google.com
}
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