Forum Discussion
JonathanW_38552
Nimbostratus
Mar 11, 2019Please help with iRule rewrite while keeping original url for external domain
Hello everyone,
Having a tough time finding a correct answer to this. I have seen very similar answers but nothing that does quite what I am asking. I am new to iRules so be kind. I have a client w...
Dave_McCauley_3
Cirrostratus
Mar 12, 2019Add the URI to the redirect:
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] equals "abc.xyz" and [string tolower [HTTP::uri]] starts with "/example" } {
HTTP::respond 301 noserver Location "https://abc.external.xyz[HTTP::uri]"
}
}
- JonathanW_38552Mar 12, 2019
Nimbostratus
Thank you Dave for your response. It still gives me the same 404 error with both URL's in the address bar.
Jonathan
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