Forum Discussion
brandonaldape_2
Nimbostratus
Aug 07, 2017Dynamic Path-Prepend based on beginning of URL.
I need to be able to path-prepend a dynamic URI based on the beginning of the URL.
For example we use:
when HTTP_REQUEST {
if { [HTTP::path] "/" } {
HTTP::redirect "/abc/" }
}
Instead of hard...
boneyard
MVP
Aug 07, 2017take the host as string [HTTP::host], split (tcl function: http://wiki.tcl.tk/1499) it on the dot (.) and then use the first part as variable in the redirect.
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