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
Apr 01, 2020make sure you have new iRule above existing iRule. Also if it is already there, then it seems end statements is not getting matched.
One question here,
is URI 'DetailJob.aspx?Mod=search&CatId=21&job=1029042&Lang=vi' is same all the time?
If yes, then may be you can try below iRule. It is working fine. I've tested it in my lab setup.
when HTTP_REQUEST {
if {[HTTP::host] equals "test.abc.com" and [HTTP::uri] equals "/DetailJob.aspx?Mod=search&CatId=21&job=1029042&Lang=vi"} {
HTTP::redirect "https://test.abc.com"
}
}
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
