Forum Discussion

SS11's avatar
Icon for Nimbostratus rankNimbostratus
Dec 01, 2020

Add the URI in the redirect URL when the HTTP Response is 404 code

If user trying to access any page/item which is not present (404) then user should be redirected to home page of site like test123/?abcd=<requested item>

e.g. test123/xyz (HTTP-404) to test123/?abcd=xyz


How to insert the URI in this Irule.



 if { [HTTP::status] == 404} {

  HTTP::redirect "http://test123/?abcd="



3 Replies