Forum Discussion
jacob900_39797
Nimbostratus
Mar 12, 2007URL-uri rewrite problem using Default
Hello,
I am trying to write a simple rule that has worked before in similar circumstances. I need the rule to behave so as three outcomes can take place"
1) If someone types in web.mysi...
jacob900_39797
Nimbostratus
Mar 13, 2007I actually started out using the -glob switch but it came up with the same results. Here is my rule again..as of right now with the -glob switch again.
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"/specific/" {
pool Specific_Pool_80 }
"/" {
HTTP::redirect http://[HTTP::host]/specific/ }
"/*" {
HTTP::redirect http://[HTTP::host]/specifc/ }
}
}
1) Please keep in mind that the url/specific address works fine if I bypass BigIP and/or take out the url. The url/uri is valid. I just don't understand why it strips the jpegs from the pages.
2) If take out the last statement, whether it be a wildcard statement or Default statement then the rule works fine except for monitoring for wildcard URIs. Here is an example that works without the wildcard statements and renders the page correctly.
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"/reaaccom/" {
pool Reaaccom_YGB_80 }
"/" {
HTTP::redirect http://[HTTP::host]/reaaccom/ }
}
}
Why does adding a wildcard statement (/* or Default) make the LTM strip images even though it does redirect correctly.
Thanks,
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