It the code of plugin, function bnc_filter_iphone() you have the following code:
$redirect_location = $protocol . $_SERVER[‘HTTP_HOST’] . $_GET[‘wptouch_redirect’];
header( ‘Location: ‘ . $redirect_location );
It won’t work if the server name is not the same as the host name. It happens at some servers (for example, default Nginx is configured like I said). Why don’t you use
$redirect_location = $protocol . ($_SERVER[‘HTTP_HOST’] ?: $_SERVER[‘SERVER_NAME’]) . $_GET[‘wptouch_redirect’];
- The topic ‘[Plugin: WPtouch] HTTP_HOST vs SERVER_NAME’ is closed to new replies.