I have 2 domain names connected to 1 site. 1 of the domain names is a legacy domain name that I will not renew in the future, so I would like to have a lightbox pop up when users go to that URL, but not on the new URL. I had this working with a 301 redirect at first, but this no longer works because the old URL just redirects to the new URL by default. Is there a way to keep the old URL from redirecting to the new URL without having a separate site?
I have also tried using Code to pull the referrer URL but it will not pull the old URL.