Forum Discussion
Dave_Horsey_225
Nimbostratus
Mar 10, 2006Rewrite URL and change pool trouble
I have been working on a irule to rewrite the URL to do the following:
User sends http://www.sitename.com/blog
bigip changes the url to http://blog.sitename.com/ and redirects the ...
Mar 14, 2006
A couple of things.
1) The URI does not contain the hostname so your "if" is probably not passing.
1) The URI cannot have spaces. You are inserting a space before your "string range" command.
2) What is the value of $uri? I don't see it defined anywhere.
3) Have you added any logging to verify that your "if" condition is met? My guess is that it is not. it should be something like this:
if { [HTTP::uri] starts_with "/blog" } {
...
}If you need to verify the host as well, you'll have to "and" two comparisons together using the HTTP::host value.
Adding simple logging is always your best debugging step to sort out issues like this.
-Joe
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
