Forum Discussion
OttimoMassimo_1
Nimbostratus
Nov 08, 2010HTTP re-write
Hi,
Apologies in advance for the newbie question!
I'd like to apply a HTTP re-write so when a user browses to blog.site.com they are redirected to www.site.com/blog/, but blog.site...
OttimoMassimo_1
Nimbostratus
Nov 25, 2010so yeah, got this working in the end with the following:
when HTTP_REQUEST {
...
switch [HTTP::host] {
"blog.site.com" {
if { [HTTP::uri] equals "/" } {
HTTP::uri "/blog/"
}
pool
return
It was grafted into an existing i-rule which had a couple of re-writes before defaulting to the default pool
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