我想隐藏获取变量
http://fun.megsta.com/apps/BreakingNews_/?width=1000
我试过这段代码
RewriteEngine On
RewriteRule ^index/([^/-]+)-([^/-]+)/?$ index.php?r=$1&width=$2 [QSA,NC,L]
这里我得到了这个获取变量URL获取屏幕宽度
<? if(!isset($_GET['width']))
{
echo "<script language=\"JavaScript\">
<!--
document.location=\"$PHP_SELF?width=\"+screen.width;
//-->
</script>";
}
else {
// Code to be displayed if resolutoin is detected
if(isset($_GET['width'])) {
// Resolution detected
}
else {
// Resolution not detected
}
}
?>