# APM checking for URI

**URL:** <https://community.f5.com/t/apm-checking-for-uri/76994>\
**Category:** Technical Forums\
**Tags:** cloud\
**Created:** [March 23, 2026, 4:01pm UTC](https://community.f5.com/t/apm-checking-for-uri/76994 "2026-03-23T16:01:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![steven\_normole](https://avatars.discourse-cdn.com/v4/letter/s/8dc957/32.png) [@steven\_normole](https://community.f5.com/u/steven_normole)\
**Post date:** [March 23, 2026, 4:01pm UTC](https://community.f5.com/t/apm-checking-for-uri/76994/1 "2026-03-23T16:01:14Z")

</div>

I have created an APM policy that checks to is it the URI contains a specific URI.&nbsp; If the URI is anything else then the fallback is to send the traffic.

example: [fubar: Real people. Real fun.](https://www.fubar.com/admin) - the APM is looking for /admin and if present the traffic will then go to the next step is certificate prompt

if the URI contains anything else use the fallback to continue.&nbsp; For example [https://www.fubar.com/documents/invenioHealth](https://www.fubar.com/documents/invenioHealth) the APM would use the fallback and just let the traffic pass

[https://www.fubar.com/documents/invenioHealth](https://www.fubar.com/documents/invenioHealth) in this case the F5 is sending a 302, instead of just sending the traffic through and then sends a FIN/ACK back to the source.

---

<div class="post-metadata">

**Author:** ![Injeyan\_Kostas](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/injeyan_kostas/32/263_2.png) [@Injeyan\_Kostas](https://community.f5.com/u/Injeyan_Kostas)\
**Post date:** [March 23, 2026, 4:55pm UTC](https://community.f5.com/t/apm-checking-for-uri/76994/2 "2026-03-23T16:55:39Z")

</div>

Hello @steven_normole

You should better just disable APM for unmatched uris

try something like this

```tcl
when HTTP_REQUEST {
    if { ![[HTTP::uri] starts_with "/admin"] } {
        ACCESS::disable
    }
}

```

---

<div class="post-metadata">

**Author:** ![steven\_normole](https://avatars.discourse-cdn.com/v4/letter/s/8dc957/32.png) [@steven\_normole](https://community.f5.com/u/steven_normole)\
**Post date:** [March 25, 2026, 9:36am UTC](https://community.f5.com/t/apm-checking-for-uri/76994/3 "2026-03-25T09:36:05Z")

</div>

that solved that problem.&nbsp; thank you
