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 ...
Dave_Horsey_225
Nimbostratus
Mar 14, 2006I get the following iRule error....
01070151:3: Rule [Blog_Redirect_test] error:
line 9: [deprecated usage, use else or elseif] [ ]
line 9: [missing an expression] [ ]
line 5: [undefined procedure: [HTTP::uri] contains "/blog" ] [if { [HTTP::host] eq "www.xxxxxxxxxinsight.com" } {
HTTP::header replace "Host" "cs.geoxxxx.com"
} elseif { [HTTP::host] eq "xxxxxxxxxinsight.com" } {
HTTP::header replace "Host" "cs.geoxxxx.com"
} if { [HTTP::uri] contains "/blog" } {
pool MIS-WEB21-CS
} else {
pool MIS-WEB20-4
}]
I am just trying to replace /blog with /blogs/menopauseinsightblog I though the string had to be the length of the uri replacement string. Also, there will be other pararmeters after the string that I don't want replaced.
i.e. /blog?name=star would turn into /blogs/menopauseinsightblog?name=star
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
