Forum Discussion
fazinfar_29104
Nimbostratus
Jan 27, 2009direct the http request to new page
Hello everyone.
I am pretty new on Irules and don't know much about it.
I need to direct the http request to http://www.allforme.com/player
to http://www.allforme.com/main...
Juerg_Wiesmann
Nimbostratus
Jan 27, 2009If you are using a Standard Virtual Server I would recommend using a HTTP Class Profile (finally added to your Virtual)
On Configuration add host to www.allforme.com
and on URI Paths add /player
On the Actions
set send to field to redirect and set Redirect Location to http://www.allforme.com/maintenance
So the user will be directed to the new URL if a Match is made.
If you want the user to stay on the same site you have to use rewrite send it to a pool with the destination Host in it and do a rewrite.
http://www.allforme.com[string map { /player /maintenance } [HTTP::uri]]
This will replace the backend Requests with the new Hostheader and replace the URI Path "/player" with "/ maintenance" and keep the rest of the URL
Good luck
Wiesmann
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
