Forum Discussion
pgsmith_120398
Apr 24, 2013Nimbostratus
I think the underlying issue is i probably dont fully understand whats going on. I think i do but i probably dont...
I started with somthing like this:
https://devcentral.f5.com/tech-tips...via-ifiles
And it worked fine to display the page with a single image file.
I worked my way up to somthing like you suggested before:
https://devcentral.f5.com/tech-tips...via-ifiles
I then took the general idea from that page and simply tried to extend it to more uri's
switch [HTTP::uri] {
"/" { HTTP::respond 200 content [ifile get "index"] }
"/some-image.jpg" { HTTP::respond 200 content [ifile get "some-image"] }
"/some-other-image.jpg" { HTTP::respond 200 content [ifile get "some-other-image"] }
Ive also tried this same idea with the use of multiple elseif lines but eventually tried to use switch instead.