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...
drteeth_127330
Aug 02, 2005Historic F5 Account
You might have to use regular expressions after all. Something like this might work:
if {regexp $my_uri {.+/[^\.]+[^/]$}} {
append $my_uri "/"
}
This regex matches if the last path component does not end with a slash and it does not contain a period followed by at least one character.
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