Forum Discussion
paul_dcc
Nimbostratus
Jul 16, 2010HTTP Redirect
Hi All,
I created a simple Irule to do a redirect, but when I test this it takes me to the wrong page beacause it add a / to the end of the url string which I do not require,
Could some one please help with my problem
Thanks
Paul
when HTTP_REQUEST {
Check host header value
if {[string tolower [HTTP::host]] eq "des.dorsetcc.local"}{
Redirect client to the full host name
HTTP::redirect "]"
}
}
- Chris_Miller
Altostratus
What exactly are you trying to redirect users to? Since you're putting [HTTP::uri] at the end of the iRule, it's going to insert the "/" because that's the URI they're specifying. - paul_dcc
Nimbostratus
Cheers Chris, - hoolio
Cirrostratus
Hi Paul,
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