Redirect by PC or mobile access
July 25th, 2008 — adminphp code as follows:
$iswap = isset($_SERVER[’HTTP_ACCEPT’])? $_SERVER[’HTTP_ACCEPT’]:”;
if(strpos($iswap,”wap”)>0)
{
@header(”Location: /wap/”);
}
php code as follows:
$iswap = isset($_SERVER[’HTTP_ACCEPT’])? $_SERVER[’HTTP_ACCEPT’]:”;
if(strpos($iswap,”wap”)>0)
{
@header(”Location: /wap/”);
}
Add php code into html for lunarpage.com linux host.
try this line in a blank .htaccess
AddType application/x-httpd-php php html