Forum Discussion
tempsuli
Dec 17, 2020Altostratus
Redirect iRule problem
Hello, I would need to do the following with an iRule. Any ideas are appreciated! Basically I need to know how to retrieve the original host in the request and add it to the end in the redirect...
- Dec 17, 2020
when HTTP_REQUEST { HTTP::redirect https://www.xyz.com/portal/dsds?=https://[HTTP::host][HTTP::uri] # OR: # HTTP::respond 301 Location https://www.xyz.com/portal/dsds?=https://[HTTP::host][HTTP::uri] }
Also, you can achieve the same with a local traffic policy.
Amine_Kadimi
Dec 17, 2020MVP
when HTTP_REQUEST {
HTTP::redirect https://www.xyz.com/portal/dsds?=https://[HTTP::host][HTTP::uri]
# OR:
# HTTP::respond 301 Location https://www.xyz.com/portal/dsds?=https://[HTTP::host][HTTP::uri]
}
Also, you can achieve the same with a local traffic policy.
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