Forum Discussion
Tony2020
Nimbostratus
Apr 28, 2017Match & redirect based on URIs to another site with similar URIs structured
Hi all, I would like to know if anyone can help provide recommendations on this iRUle where it will only match based on the URIs from the old site, and from there redirect to a new site with simi...
Samir_Jha_52506
Noctilucent
Apr 28, 2017If all the condition will be same like above, Then i will write simple iRule like below.
when HTTP_REQUEST {
set uri [string tolower [HTTP::uri]]
if { [string tolower [HTTP::host]] equals "my.oldsite.com" } {
HTTP::redirect "http://my.newsite.com$uri"
}
}
Tony2020
Nimbostratus
Apr 28, 2017thank you and appreciate your suggestion on this. I will try this.
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