PHP Mobile Redirect
[resolved] Not redirecting back to Full View (5 posts)

  1. Raul Fernandez
    Posted 3 years ago #


    I installed your plugin and the redirection to the mobile works great, now I want to use the feature to redirect back to the Full View site and it is not working, I placed the code in the mobile index and I make sure that the variable is the default "mobile". Can you please let me know how can I set up the right way? Also what represents the "time()+3600" is that the time in seconds ? can that be changed to less time?

    Thank you guys.


  2. Code96
    Plugin Author

    Posted 3 years ago #

    Make certain that the PHP code to set the cookie is at the very top of your mobile site index.php page before any html. Also, the default cookie name is "mobile" if you wish to change this, make certain you have updated the plugin settings page.


  3. Raul Fernandez
    Posted 3 years ago #

    Perfect! I did what you said and works.

    Thank you very much, great plugin.

  4. Raul Fernandez
    Posted 3 years ago #

    Closing the ticket.


  5. circavista
    Posted 3 years ago #


    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:

    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="http://www.circavista.com/" 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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • PHP Mobile Redirect
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.