Forum Discussion
Q_Wade_Billings
Nimbostratus
Dec 05, 2005IP based URI redirect to named based URI
I need to be able to rewrite/redirect numerical based URI's to named based URI's. For example, if someone was to put http://x.x.x.x/index.jsp into a browser, I would need to rewrite and redirect that URI to http(s)://www.foobar.com/index.jsp. Here is the rule I have come up with, and I just need a sanity check.
rule my_rule {
if (http_uri equals "x.x.x.x") {
redirect to "https://www.foorbar.com/%u"
}
else {
use pool web_pool
}
}
Thanks,
QWade
No RepliesBe the first to reply
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