Forum Discussion
Krishna_R
Nimbostratus
Apr 01, 2015How to redirect url with extension?
Hi Team,
Could someone tell me what would be the iRule for url with extension to another url with extension.
Eg:
http://xxx.myhost.com/search?profile=NAP
to
http://xxx.myho...
Stewart
Altostratus
Apr 01, 2015Hi Krishna,
This might work for you.
when HTTP_REQUEST {
set http_host [string tolower [HTTP::host]]
set uri [HTTP::uri]
if { (($http_host equals "xxx.myhost.com") and ($uri equals "/search?profile=NAP")) }{
HTTP::redirect "http://xxx.myhost.com/search?profile=LL"
return }
elseif { (($http_host equals "yyy.myhost.com") and ($uri equals "/search?profile=NAP"))}{
HTTP::redirect "http://xxx.myhost.com/search?profile=LL"
return }
}
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