Forum Discussion
URL redirection with Variable field Dynamic content
I am trying to create a irule on F5 for below redirection where dynamic variable field in actual url should get replaced dynamically. I need this urgently. kindly help.
Currently on NGINX apache has below rewrite rule which replaces (.*) with $1 dynamically with exact content like index.php with index.php.
Actual URL :http:abc.xyz.com:8080/delivery/(.*)
Redirected URL :http://cde.xyz.com:8585/reloadconfig/delivery/$1
eg.if Actual URL :http:abc.xyz.com:8080/delivery/index.php
Redirected URL :http://cde.xyz.com:8585/reloadconfig/delivery/index.php
1 Reply
- Faruk_AYDIN
Altostratus
Hi Guy,
if { [HTTP::host] equals "abc.xyz.com:8080" && [HTTP::uri] starts_with "/delivery/" } { HTTP::redirect "http://cde.xyz.com:8585/reloadconfig[HTTP::uri]" }
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