> ## Documentation Index
> Fetch the complete documentation index at: https://moengage.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Why Did the OSM Campaign Redirect to the “does not contain” URL?

> Troubleshoot why an OSM campaign displays on URLs it should exclude. Fix segment conditions by switching from OR to AND logic in MoEngage.

## Problem

The On-site Messaging (OSM) campaign must be displayed on websites whose URLs do not include the strings "offline centers" or "abc." However, it is currently being displayed on a website that contains the string "abc," which does not fulfill the condition.

The following screenshot shows where the OSM campaign must be displayed:

<img alt="Screenshot 2025-02-10 at 12.37.23 PM.png" src="https://mintcdn.com/moengage/E3HJVtaUzhrzFckK/images/moengage_91d4b9.png?fit=max&auto=format&n=E3HJVtaUzhrzFckK&q=85&s=c384bd8acbe035e0ff97866467ac79d2" width="1468" height="1648" data-path="images/moengage_91d4b9.png" />

## Solution

1. The campaign segment uses OR conditions and displays the campaign if one condition is true.
2. Replace the campaign segment's OR conditions with AND conditions.
3. Ensure that all conditions belong to the URL “does not contain” when using the AND condition.
