• Resolved gokberktalu

    (@gokberktalu)


    Hi,

    I have the paid version of the plugin and I know how to use “Unload Sitewide & add exceptions”.

    I currently add the exceptions as:

    #/lessons/#
    #/forums/#

    etc.

    But when I try to simply copy paste the URL for the plugin to only load in, it doesn’t work. I want certain plugins to activate only in certain URLs. Could you tell me how I need to write here?

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Gabe Livan

    (@gabelivan)

    @gokberktalu whenever you use a RegEx rule (either unload or load exception), you have to add the URI there, not the URL. It has to be relative as you might having a staging website and move your website there.

    The rules will still apply, even if the hostname is different. You don’t need to use the full URL. Is there a reason you want to do that? Let me know the type of rules you want to apply and I’ll be happy to help you out.

    Thread Starter gokberktalu

    (@gokberktalu)

    Hello Gabe,

    My website is currently live (under construction mode).

    I don’t want to share the link here, so I’ll write a madeup domain to explain what I want to do.

    Let’s say my website is randomwebsite.com

    I have certain pages where a plugin is used.

    For example randomwebsite.com/lessons

    so, do I simple write /lessons ? Can you show me which options I need to select for RegEx rule for URI? I’m still new to this plugin..

    THanks

    EDIT:

    for example not the #/lessons/# but only the /lessons directory. Is that possible?

    • This reply was modified 4 years, 1 month ago by gokberktalu.
    Plugin Author Gabe Livan

    (@gabelivan)

    @gokberktalu my sincere apologies for this late reply! If you just want the rule to apply to /lessons, but not /lessons/any-str-here/ then you have to use the following RegEx: #^/lessons$# -> this will ONLY match if the URI is /lessons

    However, sometimes, URLs have query strings that are appended after the question mark (e.g. /lessons?utm_source=info-here). In this case to match either /lessons and /lessons?(anything after the question mark), the RegEx would be: #(^/lessons$)|(^/lessons\?)#

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to make plugin work only in certain pages?’ is closed to new replies.