Forum Discussion
NielsH_187296
Nimbostratus
Feb 15, 2015Rewriting HOST+URI does not work
Hi,
I'm using the following iRule to let the BigIP redirect a request for /webfront to website-webfront.domain.com. The redirecting should go via the BigIP, not via the client.
Source: http...
Torti
Cirrus
Feb 15, 2015your irule is confusing. Do you want webfront-web.domain.com or web-webfront.domain.com?
try this:
if { ([HTTP::uri] starts_with "/webfront") } {
change host name option 1
HTTP::host "webfront-[HTTP::host]"
or option 2
HTTP::host "[substr [HTTP::host] 1 ".domain.com"]-webfront.domain.com"
trim uri
HTTP::uri [string map {"/webfront" ""} [HTTP::uri]]
}
NielsH_187296
Nimbostratus
Feb 15, 2015I would like subdomain-webfront.domain.com
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