参数传递问题 我认为“http://XXXX.com/cont/”无非就是对应于http://XXXX.com/cont/目录下的默认页面,然后参数“id=XX”还是传给这个页面,就好比:http://XXXX.com/cont/index.htm?id=XX 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 哦,这个例子不好,htm接受参数没啥意思。 可以用Apache的Rewritehttp://XXXX.com/cont/?id=XXRewrite到http://XXXX.com/cont/counter.php?id=XXRewriteRule /cont/?id=([0-9]*) /cont/counter.php\?id=$1 或者/count/index.php用下面的方式写<?php$id = intval(trim($_GET['id']));if (empty($id)) { $n="other"; }switch($n) { case "other" : require_once('other.php'); break; default : require_once('counter.php'); break;}?> RewriteRule /cont/?id=([0-9]*) /cont/counter.php\?id=$1 少了反斜杠改为下面的RewriteRule /cont/\?id=([0-9]*) /cont/counter.php\?id=$1 唉。谁能解决urlrewrite里的encode问题我给他100分。www.xxx.com/ab%5Fcd/index.php->rewrite成新地址www.xxx.com/ab_cd/index.php->不变 http://XXXX.com/con/?id=XX就是利用的站点默认的页面的。比如此站点的默认的页面是aa.asp,或者aa.php那么上面的http://XXXX.com/con/?id=XX就和http://XXXX.com/con/aa.php?id=XX效果一样的。 数据库 相同数据合并输出表格 问一个简单的问题?不知道有人知道不 netbeans下xdebug调试ci框架程序 浏览器显示forbidden rw关于date()函数 求一关联,无论左关联为空值,或者右关联为空值,都能显示出来。 出个郁闷了几天的问题? 不会处理这个传递过来的url了,请求帮助,谢谢~~ 高分求phpwind 3.X 论坛的分页思路 在线播放 我的程序能在PHP4.1.3下运行,但在PHP4.2.1运行有问题 Oracle的SQL语句问题!在线等,急! 有谁知道那种点对点的聊天,是怎么做的呀?用PHP!急,谢谢各位高手了!
http://XXXX.com/cont/?id=XX
Rewrite到
http://XXXX.com/cont/counter.php?id=XXRewriteRule /cont/?id=([0-9]*) /cont/counter.php\?id=$1 或者
/count/index.php
用下面的方式写
<?php
$id = intval(trim($_GET['id']));
if (empty($id)) { $n="other"; }switch($n) {
case "other" : require_once('other.php'); break;
default : require_once('counter.php'); break;
}?>
改为下面的
RewriteRule /cont/\?id=([0-9]*) /cont/counter.php\?id=$1
www.xxx.com/ab_cd/index.php->不变