Emiliano
Apr 25, 2023Nimbostratus
Keep URL after a redirect
Hi Guys,
I have an iRule that perform a redirect to an external website. I need to keep the original URL when the redirect is done.
Ex:
when HTTP_REQUEST {
if { [string tolower [HTTP::path]] contains "/sfnetios_xp"}
{
HTTP::respond 301 noserver Location http://example.com[HTTP::uri]
}
}
The original URL is www.testing.com and should be kept in the browser.
Thanks.