Forum Discussion
roostar_79107
Nimbostratus
Jul 02, 2009regex irule for search url redirect
Any one got a sample irule that will identify a search term (in this case the word 'help') and rewrite the url using the search term?
e.g.
http://www.mycompany.com/forum/search!default.jspa?q=help
becomes
http://www.google.com/search?q=help site:mycompany.com/forum
thanks in advance
Ryan
- hoolio
Cirrostratus
Hi Ryan, - Ryan, a couple of questions come up.
when HTTP_REQUEST { switch -glob [HTTP::uri] { "*help" { transform url. } } }
HTTP::redirect "http://www.google.com/search?q=help site:mycompany.com/forum"
HTTP::Header replace "Host" "www.google.com" HTTP::URI "http://www.google.com/search?q=help site:mycompany.com/forum"
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