New in BIG-IP version 11.1 are iFiles, a feature that allows users to load files through tmsh or the GUI onto the BIG-IP which can be referenced from iRules. This has an immediate use case of supplan...
Hi DushyantSingh,
I assume that you can do that using switch, tested and working on my side:
switch [string tolower [HTTP::uri]] {
"/" { HTTP::respond 200 content [ifile get main_maint_few_images_txt] }
"/f5b_mini.png" { HTTP::respond 200 content [ifile get main_maint_png] }
"/pic_mountain.jpg" { HTTP::respond 200 content [ifile get main_maint_02_jpg] }
default { discard }
}