WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. t4runltd
    Member
    Posted 12 months 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?:

    <?php
    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>
            </a></div>

    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

    http://wordpress.org/plugins/php-mobile-redirect/

  2. Code96
    Member
    Plugin Author

    Posted 11 months 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
    Member
    Plugin Author

    Posted 10 months 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.

    Thanks

  4. tristrella
    Member
    Posted 8 months ago #

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

Reply

You must log in to post.

About this Plugin

About this Topic