Forum Discussion
theXfactor82_91
Jun 16, 2015Nimbostratus
irule redirect question
We are moving a PeopleFinder feature over to a new Server so I am wanting to know if an irule could take care of the following...
request is http://site.com/path/peoplefinder_advanced.pl?searchS...
- Jun 16, 2015
Please try this.
when HTTP_REQUEST { if { [HTTP::uri] start_with "/path/path/peoplefinder_advanced.pl" } { HTTP::redirect "http://newsite.com/peoplefinder.aspx?[URI::query [HTTP::uri]]" } }
theXfactor82_91
Jun 16, 2015Nimbostratus
Thanks a lot! That did the trick. The only thing I had to change was remove the searchStr= as it was giving me a syntax error when entering the irule.
Final irule looked like this.
when HTTP_REQUEST { if { [HTTP::uri] start_with "/path/path/peoplefinder_advanced.pl" } { HTTP::redirect "http://newsite.com/peoplefinder.aspx?[URI::query [HTTP::uri]]" } }
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