Page URL

In this article: About the page URL condition |  How to set up a page URL condition using If-So

What is the page URL condition?

The Page URL condition lets you add or replace content on your website based on a static URL of a page or based on custom parameters (query strings).

How to set up a page URL condition:

  1. On your WordPress dashboard, go to “If-So → Add New Trigger
  2. Click on “Select a condition” and select “Page URL”.
  3. Select “URL”.
  4. Select an operator: “URL is” / “URL contains” / “URL is not” / “URL does not contain”.
  5. Type in a domain, a webpage URL, or a term.
  6. In the content field, set the content to be displayed if the condition is met.
  7. In the default content field, set content to be displayed if the condition is not met (optional, can be left blank).
  8. Press “Publish” and paste the shortcode generated by If-So in your website

FAQs

  • Will this work with server and WordPress caching solutions?

    Yes.

    Whether you are using a caching plugin or server caching, you can navigate to the plugin settings and enable the "Page Caching Compatibility" option. With the option enabled, dynamic triggers will be rendered in a separate request that will take place after the loading of the cached version.

    Learn more about Page Caching Compatibility.

  • Can I redirect users to a different page based on conditions?
    Yes. You can redirect users based on each one of the conditions by pasting a simple JavaScript code in the dynamic version content field. Click here for a step by step guide.
  • Was this Helpful ?
  • YesNo
Ready to get started?
Try it on your website