Title: Triggering by referrer
Last modified: March 24, 2017

---

# Triggering by referrer

 *  Resolved [James](https://wordpress.org/support/users/en7jos/)
 * (@en7jos)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/triggering-by-referrer/)
 * Hi,
 * Just started experimenting with your plugin and I have a quick question please.
   I want to show a popup to welcome visitors coming to a certain new website from
   a certain old site. So I want to setup the popups to display when the referrer
   is the old site.
 * Now I can get it working fine when I set the referrer as being a specific page
   on the old site (e.g. [http://oldsite.com/this-page/](http://oldsite.com/this-page/)),
   but I cannot work out the correct syntax to set the referrer to be ANY page on
   the old site. I thought something like a wildcard [http://oldsite.com/*](http://oldsite.com/*)
   with an asterisk at the end is needed, but that doesn’t seem to work. I can’t
   find any info in your documentation, FAQs or support forum regarding this.
 * So can you please explain the syntax required to set the referrer to be ANY page
   from a certain website please?
 * Many thanks, James

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Damian](https://wordpress.org/support/users/timersys/)
 * (@timersys)
 * [9 years ago](https://wordpress.org/support/topic/triggering-by-referrer/#post-8960594)
 * Have you tried simple putting oldsite.com ? The regex match should be wide open.
 * Regards
 *  Thread Starter [James](https://wordpress.org/support/users/en7jos/)
 * (@en7jos)
 * [9 years ago](https://wordpress.org/support/topic/triggering-by-referrer/#post-8963417)
 * Great, thank you. Yes, putting just oldsite.com (no http or www and no trailing
   slash) has worked perfectly. Thought there must be a simple answer!
 * Many thanks 🙂
 *  Plugin Author [Damian](https://wordpress.org/support/users/timersys/)
 * (@timersys)
 * [9 years ago](https://wordpress.org/support/topic/triggering-by-referrer/#post-8986346)
 * Glad it worked
    If you like the plugin / support please [leave a short review](https://wordpress.org/support/view/plugin-reviews/popups?filter=5).
   It’s a tremendous help for us!
 * Thanks

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Triggering by referrer’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/popups_efeef0.svg)
 * [Popups - WordPress Popup](https://wordpress.org/plugins/popups/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/popups/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/popups/)
 * [Active Topics](https://wordpress.org/support/plugin/popups/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/popups/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/popups/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Damian](https://wordpress.org/support/users/timersys/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/triggering-by-referrer/#post-8986346)
 * Status: resolved