Forum Discussion
wyuen_99269
Altostratus
Mar 06, 2015Irule to URL rewriting
How would you write an irule? A domain name "A" ip address points to F5. I would like keep the name of domain on the browser but under redirect internally with changing the URL on the Browser
wyuen_99269
Altostratus
Apr 02, 2015Hi,
I tested the script running under 11.2.1, it does not work. It does redirect to the site. Would it possible
rewrite the procedure under 11.2.1.
when HTTP_REQUEST {
if { [string tolower [HTTP::host] equals "www.domainA.com" ] } {
HTTP::respond 301 Location "http:://www.domainB.com[HTTP::uri]"
}
if { [string tolower [HTTP::host] equals "www.domainB.com" ] } {
HTTP::host "www.domainA.com"
}
}
Thank you
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