Forum Discussion
KYENTURK_139771
Nimbostratus
Jul 08, 2014URL Redirect with variable
Hello All,
We want to redirect source URL to Target URL at below but there is critical point for this URL. this string (.*) have to be end of the target URL.
Can you share any example , solution...
Stewart
Altostratus
Jul 09, 2014This might work for you. I've not tried it but it should be a good starting point.
when HTTP_REQUEST { if { [HTTP::host] equals "abc.com" } { if [HTTP::path] starts_with "/sample/abc"} {
HTTP::redirect "http://redirect.def.com/redirect/abc[string range [HTTP::uri] 11 end]" } }
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