Hi Jochen, Thank you very much, i am now able to display the image on the html page and navigate all the traffic to this page when the rule is enabled. I modified the trafficscript from the example as below. $url = http.getPath ( ) ; if ( ! string.regexmatch ( $url , "^/\\.extra/(.*)$" ) ) { http.setPath ( "/.extra/App_Offline.html" ) ; } $url = http.getPath ( ) ; if ( ! string.regexmatch ( $url , "^/\\.extra/(.*)$" ) ) { break ; } else { $file = $1 ; } # If the file does not exist, stop if ( ! resource.exists ( $file ) ) break ; $mimes = [ "html" => "text/html" , "jpg" => "image/jpeg" , "jpeg" => "image/jpeg" , "png" => "image/png" , "gif" => "image/gif" , "js" => "application/x-javascript" , "css" => "text/css" , "ico" => "image/x-icon" , "txt" => "text/plain" ] ; if ( string.regexmatch ( $file , ".*\\.([^.]+)$" ) ) { $mime = $mimes [ $1 ] ; } if ( ! $mime ) $mime = "text/html" ; # Serve the file from the conf/extra directory $contents = resource.get ( $file ) ; http.sendResponse ( "200 OK" , $mime , $contents , "" ) ; Thanks Arvind
... View more