Forum Discussion
Michael_107360
Cirrus
Sep 19, 2013Adding URI to URL
I am trying to add a URI to a URL and
and not having any luck.
so if someone types server.name.com they get server.name.com/qcbin
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] ...
Kevin_Stewart
Employee
Sep 19, 2013The HTTP::host value returns the host name (ie. server.name.com). You want HTTP::uri or HTTP::path to evaluate the URI value. You also don't need to do [string tolower ] if you're evaluating URI = "/".
when HTTP_REQUEST {
if { [HTTP::uri] equals "/" } {
HTTP::uri "/qcbin"
}
}
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