Forum Discussion
Chirag_Patel_14
Nimbostratus
Jun 23, 2014Clonining HTTP URLs
Need help with creating an iRule that will clone URI to the new Host upon redirects.
Example:
All the pages under /city/gov/ directory in
www.boston.com/city/gov/
should map to ...
Chirag_Patel_14
Nimbostratus
Jun 24, 2014This fixes it:
when HTTP_REQUEST { if { ([HTTP::host] equals "www.soundbite.com") and ( [HTTP::uri] starts_with "/education" ) } { HTTP::respond 301 Location "http://www.genesys.com[HTTP::uri]" } }
thanks, Chirag
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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