Forum Discussion
Boris_Artemyev_
Nimbostratus
Aug 08, 2007Partial URI rewrite v 4.5
Hello,
I searched for a relative answer to no avail.
We would like to implement the following:
redirect http://www.mywebsite/my/very/long/dynamic/uri to http://www.mywebsite/our/very/lo...
Deb_Allen_18
Aug 10, 2007Historic F5 Account
I think Boris is right, that the URI will contain both the old part and the new part that way.
He'd need to use substr or some other text manipulation to re-build the URI, maybe something like this?
rule my_rule {
if (tolower(http_uri) starts_with "/my/very/long/") {
redirect to https://www.foorbar.com/our/very/long/ + substr(http_uri, 14)
} else {
use pool http_pool
}
}
/deb
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