Forum Discussion
Peter_71625
Nimbostratus
Mar 27, 2009Redirect without showing in browser
Hi there,
i want to create a Irule how redirects a link ends with "bla" to "www.bla.com".
But without showing it in the browser.
i have this one:
when HTTP_REQUEST
{
set uri [HTTP::uri]
if { ($uri ends_with "bla" ) } {
HTTP::redirect "https://www.bla.com/" }
}
But this on shows it in the browser.
Tanks for any help!
1 Reply
- hoolio
Cirrostratus
Hi,
You can use HTTP::uri "/new_uri" to rewrite the URI before the request is sent to the pool member. This change should be transparent to the user.
However, I'm not sure what exactly you're trying to do. Is www.blah.com being load balanced by the LTM? Or can it be? If so, you could transparently rewrite the request. If not, you'll need to stick with the redirection and the client will see the update to the URL in the address bar.
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
