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, 2006Here is my next attempt, but this won't allow me to save the iRule due to my then and else statements?
What do you mean by define uri$? Isn't defined using the starts_with statement?
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/blog" } {
HTTP::uri "/blogs/menopauseinsightblog[string range $uri 27 end]"
}
then { [HTTP::header host] eq "www.xxxxxxxxxinsight.com" } {
HTTP::header replace "cs.geoxxxx.com"
else { [HTTP::header host] eq "xxxxxxxxxinsight.com" } {
HTTP::header replace "cs.geosign.com"
}
}
if {[HTTP::uri] contains "/blog" }{
pool MIS-WEB21-CS
} else {
pool MIS-WEB20-4
}}
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
