PHP Mobile Redirect
[resolved] Cannot get full view to work (4 posts)

  1. t4runltd
    Posted 2 years ago #

    So I am having problems where the plugin directs perfectly to the mobile site. Which is an external html website, but the redirect back to the full site does not work.

    The full wordpress website is: http://www.t4run.co.uk

    and the mobile html website is: m.t4run.co.uk
    I then converted the index.html to index.php (just renaming the document, is that okay to do?) and then added this code to the top before any html code as I heard you have to have an index.php page, am i correct?:

    setcookie("mobile","m", time()+3600, "/", ".t4run.co.uk");

    I then added this code to the footer so the user can go back to the full site.

    <div><a href="http://www.t4run.co.uk/" title="mobile" target="_blank" rel="external"><p1>
                View Full Site</p1>

    Even when the user clicks the link i get an endless loop of going back to the mobile site (m.t4run.co.uk) and never goes to the full site.

    Please someone tell me if I am doing something majorly wrong or any advice would be grateful.

    Thank you


  2. Code96
    Plugin Author

    Posted 2 years ago #

    Sorry for the dealy, I have been unable to get monitor these forums.. Everything looks good to me, have you checked to see if the cookie is set?

  3. Code96
    Plugin Author

    Posted 2 years ago #

    I apologize for not getting back to you sooner. If you are still having problems, please open a new thread and send a link to the problem page.


  4. tristrella
    Posted 2 years ago #

    @t4runltd did you managed to get it work? If so how did you do it?

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