This is sort of a 301 redirect question.
I have one site using two different URLs. I do not want the 301 to change the browser's URL. IOW, when the user arrives at site A, they see the URL for site A. When they arrive at site B, the URL in the browser stiill shows site B but they are on site A for data/db purposes.
The problem is that a script needs to be run that is coded based on the URL being used.
includes/templates/YOUR_TEMPLATE/common/tpl_main_page.php contains the pre-<body> code and scripts for the site.
The question is, how can I tell the site:
If URL = A
<script>lfaslfkjslfkasljf</script>
else
<script>wrpowpowp'wro</script>
That would run the second script if the user came from site B's URL.
THANX for any thoughts. Not finding much in Stack
Bookmarks