Forum Discussion
Tuan_Vu
Nimbostratus
Mar 31, 2020Irule redirect link error to default domain
Hello, I have a domain abc.com new build, i want to redirect all link old or error go to home page, and all the old links have the same structure. Exam old link: https://test.abc.com.vn/DetailJ...
Mayur_Sutare
MVP
Mar 31, 2020So alongwith this iRule, you can also bind below separate iRule on same VS. Just keep this iRule above existing iRule. So it will get match first.
when HTTP_REQUEST {
if {[string tolower [HTTP::uri]] ends_with "Lang=vi" } {
http::redirect "https://test.abc.com"
}
}
Hope it helps!
Mayur
- Tuan_VuMar 31, 2020
Nimbostratus
Hi Mayur,
I don't think so, because some of my sites have the same end. So I want to assign a specific domain test.abc.com.
If I do as you described, it redirects my whole other site?
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
