Sep 2026 - DevCentral is currently set to Read-Only (Sep 14th) for a platform update.
For some details see: DevCentral is Evolving.

Forum Discussion

SS11's avatar
SS11
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.

 

when HTTP_RESPONSE {

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

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

 }

}

3 Replies

Replies have been turned off for this discussion