Forum Discussion
kamlyada_209668
Nimbostratus
Jun 17, 2016Need an Irule for the mentioned url
Hello,
I need an Irule for below redirection-
When user will reach URL starting with alfresco-euro.kamlesh.com:2095/alfresco/webdav/** then VIP should call ** For all other URL, VIP will call ** or **
Kindly help me on the above redirection.Thanks in advance.
Regards Kamlesh Y
2 Replies
- Vijay_E
Cirrus
Assuming that you are looking for redirect:
when HTTP_REQUEST { if { ([HTTP::host] eq "alfresco-euro.kamlesh.com:2095") and ([HTTP::uri] starts_with "/alfresco/webdav/") } { HTTP::respond 301 Location "http://A92SV00694KAM:2095[HTTP::uri]" } else { HTTP::respond 301 Location "http://A92SV00695KAM:2095/" } } - Vijay_E
Cirrus
If you wanted to drop the "/alresco/webdav", you would have to replace the 2nd redirect:
HTTP::respond 301 Location "http://A92SV00695KAM:2095/"with something like this:
HTTP::respond 301 Location "http://A92SV00695KAM:2095/[string map {"/alfresco/webdav/" "/"} [HTTP::uri]]"
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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