Forum Discussion
OttimoMassimo_1
Nov 08, 2010Nimbostratus
HTTP 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
Nov 25, 2010Nimbostratus
so 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
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