Forum Discussion
johns
Employee
Jul 28, 2005Using URI to rewrite host
I am trying to come up with a rule where the first directory name of the uri is used to rewrite the URL. an example will be:
http://www.foo.com/abc/doc/index.html =>
http://abc.foo.com...
bl0ndie_127134
Aug 02, 2005Historic F5 Account
I suspect you problem is with your 'getfield' logic. Maybe you should further change your logic to some thing like ....
set my_uri [getfield [HTTP::uri] "/" 2]
if {$my_uri != "" } {
your rule
} else {
whatever you would do if there was no /
}
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