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 ...
nitass
Employee
Jun 23, 2014i do not get the error here.
config
root@(ve11a)(cfg-sync In Sync)(Standby)(/Common)(tmos) list ltm rule qux
ltm rule qux {
when HTTP_REQUEST {
if { ([HTTP::host] equals "www.soundbite.com") and ( [HTTP::uri] starts_with "/education/" ) } {
HTTP::respond 301 Location "www.genesys.com[HTTP::uri]"
}
}
}
test
[root@ve11a:Standby:In Sync] config curl -I http://172.28.24.10/education/something -H "Host: www.soundbite.com"
HTTP/1.0 301 Moved Permanently
Location: www.genesys.com/education/something
Server: BigIP
Connection: Keep-Alive
Content-Length: 0
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