Forum Discussion
Emiliano
Nimbostratus
Apr 25, 2023Keep 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.
3 Replies
No RepliesBe the first to reply
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