Forum Discussion
Pav_70755
Sep 20, 2011Nimbostratus
HTTP Re-Direct uri replace?
I have the following rule written
when HTTP_REQUEST {
if { [HTTP::uri] contains "?storyId=" } {
pool STAGE_directmarketing.thomsonnet.co.uk-80
...
Pav_70755
Sep 21, 2011Nimbostratus
Posted By Brian on 09/21/2011 07:26 AM
The range command creates a new string of the URI minus the first 4 or 5 characters.
Not sure if you saw my comments from the very beginning, but you should probably get rid of the else statement and put that pool as the default pool for the virtual server.
Thanks for all the help Brian, I will remove the else and pool statement I also have one last question is there a way to make the re-directs permanement 301 re-directs using
HTTP::respond 301 "location"
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