Pankaj_Kakade_7
Apr 24, 2015Nimbostratus
HTTP Response with iRule
Hello Team
I need help to set iRule to respond 404 page not found. If
1) HTTP request is https://abc.com irule should respond 404 Page not found 2) HTTP request is https://abc.com/test it should load web page.
I tried below iRule but it respond with 404 in both cases
when HTTP_REQUEST {if {[HTTP::uri] equals "abc.com"}{ HTTP::respond 404 content "HTTP ERROR 404 Reason:Not Found" Mime-Type "text/html" }