Forum Discussion
F5 Re-direct for document Link
Hi,
I want to know if we can have redirect irule on F5 to redirect the document link.
Source Link : Destination Link :
we don't want to affect existing redirect rule attached with virtual server.
- Vijay_E
Cirrus
Yes. An example link.
- Dali_Chauhan_33
Nimbostratus
Yes you can add two iRules in a single VS or edit existing iRule if both are co-related.
Please share existing iRule so that I can answer complete script with you .
- Dali_Chauhan_33
Nimbostratus
check with this scenario
when HTTP_REQUEST { if { [string tolower [HTTP::host]] ends_with ".abc.com" } { HTTP::respond 301 Location "https://eservices-t.abc.com/irj/portal/abc[HTTP::uri]" } if { [string tolower [HTTP::host]] ends_with ".def.com" } { HTTP::respond 301 Location "https://eservices-t.def.com/irj/portal/def[HTTP::uri]" }
- Korai_331784
Altostratus
Hi Thanks,
This time it works and thanks to all for supporting me
- Dali_Chauhan_33
Nimbostratus
when HTTP_REQUEST { if { [string tolower [HTTP::host]] eq "; and [HTTP::path] eq "/documents/A.A.A.A.pdf" } { HTTP::respond 301 Location "; } }
- Korai_331784
Altostratus
Thanks Dali,
So If I go with your second irule script it wont impact my existing live webside traffic.
I just to redirect link ending with .pdf to destination link while first part of the live site dont needs to be impacted.
Recent Discussions
Related Content
* 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