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 what I have right now....
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "www.xxxxxxxxxinsight.com/blog" } {
HTTP::uri "cs.geoxxxx.com/blogs/menopauseinsightblog [string range $uri 41 end]"
}
if {[HTTP::uri] contains "/blog" }{
pool MIS-WEB21-CS
} else {
pool MIS-WEB20-4
}}
The irule is redirecting the request, but I don't the the uri is getting changed? The MIS-WEB21-CS member server reports that /blog is being requested and gives a 404. I am not sure if I have the string range correct?
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
