• plaine

    (@plaine)


    The other support tickets on the forum didn’t seem to help me with trying to allow users to “view desktop site”.

    I’ve installed and setup the plugin to redirect, left ‘mobile’ as the cookie name and put the URL of the mobile site (minus http) in that box. But when I click the “View Desktop Site” it just sends me back to the mobile site. Here’s the code I have in place, I’ve changed the URL for privacy.

    In my mobile site I have this at the very top, before anything else in index.php:

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

    And then in my footer where they can click to view the Full site, I have this:

    <p class="footer"><a href="https://website.com/" title="mobile" rel="external">View Full/Desktop Site</a></p>

    Am I missing some other code or is this incorrect?

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

  • The topic ‘Redirect back to full site link not working’ is closed to new replies.