Forum Discussion
302 Redirects
Good day. I m trying to take the following URL and redirect to the following following URL.
Following URL:
http://site.domain.com/OA_HTML/xxibeCAcdLogin_VA.jsp
Following following URL:
http://site.domain.com/OA_HTML/xxibeVAHome.jsp
How do I do this in an iRule. I have looked at other posts in regard to 302 redirects and have tried different variations, but nothing is working.
Thanks.
B
This should get you what you need.. if it doesn't, would you post the full configuration of the virtual that you're working with?
when HTTP_REQUEST { if {[string [HTTP::uri]] starts_with "/OA_HTML/xxibeCAcdLogin_VA.jsp" }{ HTTP::respond 302 Location "https://site.domain.com/OA_HTML/xxibeVAHome.jsp" } } OR when HTTP_REQUEST { if {[string tolower [HTTP::uri]] starts_with "/oa_html/xxibecacdlogin_va.jsp" }{ HTTP::respond 302 Location "https://site.domain.com/OA_HTML/xxibeVAHome.jsp" } }
- BKA_201457Nimbostratus
You are so amazing. Thanks a ton. This worked like a champ.
when HTTP_REQUEST { if {[string tolower [HTTP::uri]] starts_with "/oa_html/xxibecacdlogin_va.jsp" }{ HTTP::respond 302 Location "https://site.domain.com/OA_HTML/xxibeVAHome.jsp" } }
- Happy to help.
Recent Discussions
Related Content
* 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