The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

WPtouch Mobile Plugin
WPtouch, Multi-site and NginX (3 posts)

  1. RavanH
    Posted 3 years ago #

    Trying WPtouch on a WP Multi-site install running on an NginX server, I find the redirection to the normal (desktop) theme does not work. After hitting the ON/OFF switch, I get redirected to http://_/ (the full domain name gets replaced by an underscore) right after the request


    has been processed. A cookie is properly set so revisiting the site with the mobile device will now show the desktop theme.

    Using web-sniffer.net (pasting the url that is used in the javascript involved in the on/off switch, including the nonce value) it reports these response headers:

    Status: HTTP/1.1 302 Moved Temporarily
    Server:	nginx/1.0.9
    Date:	Thu, 06 Sep 2012 09:58:08 GMT
    Content-Type:	text/html; charset=UTF-8
    Transfer-Encoding:	chunked
    Connection:	close
    X-Powered-By:	PHP/5.3.8-1~dotdeb.2
    Set-Cookie:	wptouch_switch_toggle=normal; expires=Fri, 06-Sep-2013 09:58:07 GMT; path=/
    Set-Cookie:	wptouch_switch_toggle=normal; expires=Fri, 06-Sep-2013 09:58:07 GMT; path=/
    X-Pingback:	http://xxx.xx/xmlrpc.php
    Location:	http://_/

    I've searched everywhere -- including the NginX server rules -- to find out why this strange replacement of the domain name happens but have not found anything... I'm running two other WP Multi-sites on similar NginX servers with basically the same setup but only one of them shows this weird issue.

    I'm at a loss here ;( ... Is there anybody that can shed some light on this for me?

    Thanks! :)


  2. BraveNewCode Inc.
    Plugin Author

    Posted 3 years ago #

    Hi Ravan,

    Have you added the Nginx server rules to exclude WPtouch's mobile user agents to the website you're seeing this issue on as well?

  3. RavanH
    Posted 3 years ago #

    Hi Brave,

    Thanks for your response.

    None of the three servers carry any special NginX rules for mobile devices. All is passed to PHP-FPM (index.php) and left to WordPress (and in one case also WP Super Cache) to be handled...

    Seeing as the cookie is properly set, I would think the redirection (Location:... response header) is coming from inside WordPress, but I'm not even sure if that is true.

    What am I missing here??

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WPtouch Mobile Plugin
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.