Forum Discussion
craig_lee10_177
Nimbostratus
Jan 18, 2013irule 404 page
Hi
I am wondering if someone can point me in the right direction. Basically the below works fine when I try and go to a directory that doesn’t exists
when HTTP_RESPONSE {
i...
What_Lies_Bene1
Cirrostratus
Jan 18, 2013This post should give you almost everything you need: https://devcentral.f5.com/community/group/aft/2165545/asg/50
However, you'll need to add some logic to ensure requests you don't want handled by this are just passed along. I'd suggest you add some unique path for the images in the index.html file that the 'normal' application would never use, for example: /404/404/image1.jpg. Then you can just do an if [HTTP::uri]] starts_with "/404/404" in a HTTP_REQUEST event; if it matches, you'll serve the iFile, if not things just work as normal.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects