Forum Discussion
Raj_Zucre_Ramir
Nimbostratus
May 18, 2011Redirection inside the pool using different URI
Hi Guys,
May I seek your help again?
I have this VS:
}
virtual VS_Headlines {
translate service enable
snat automap
pool headlines_pool_...
hoolio
Cirrostratus
May 18, 2011I'd create a new port 80 virtual server on the same IP as the any port VS. You could then add an HTTP profile and use an iRule like this to do the redirection.
when HTTP_REQUEST {
switch [HTTP::path] {
"/" {
Send a 302 redirect
HTTP::redirect "/newsliner"
Rewrite the URI and send
HTTP::uri "/newsliner"
}
default {
HTTP::redirect "https://[HTTP::host][HTTP::uri]"
}
}
}
Aaron
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