• Resolved circavista

    (@circavista)


    Hello,

    I know this topic has already been discussed but I followed those same instructions and still could not get it to work.

    I put the code in at the very top of my index.php page but am having issue getting my link for “view full site” to stop redirecting to mobile. I used the default code:

    <?php
    setcookie(“mobile”,”m”, time()+3600, “/”);
    ?>

    and set the cookie name in the settings to “mobile” but I just can’t seem to stop the redirect to happen when i try to take them to the full site. Is there special code I need to use for the link? here is what my link code looks like:

    ***a href=”https://www.circavista.com/&#8221; title=”mobile” rel=”external”<p1>View Full Site</p1>***

    i took out some brackets so you could see my code, so don’t worry those are in there

    the mobile site is m.circavista.com

    Any help would be great, thanks! otherwise, awesome plugin

    https://www.ads-software.com/extend/plugins/php-mobile-redirect/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Code96

    (@code96)

    Try using the following code to set the cookie..

    <?php
    setcookie("mobile","m", time()+3600, "/", ".circavista.com");
    ?>
    Thread Starter circavista

    (@circavista)

    That worked perfectly! thanks man, forgot to put our URL in…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Broken redirect back to full view’ is closed to new replies.