可以用正则写这样的吗? RewriteRule (.+)/(.+)\.php$ $1/b.php?brand=$2这这样得到的参数怎么是$_GET["brand"]=b;哪写错了? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 RewriteRule (.+)/(.+)\.php$ $1/b.php?brand=$2这样http://localhost/file/aaa.php得到的参数怎么是,应该是aaa才对呀$_GET["brand"]=b;哪写错了? (.+?)/(.+?)\.php$ $1/b.php?brand=$2不要使用贪婪匹配。 RewriteRule (.+)/b/(.+)\.php$ $1/b.php?brand=$2http://localhost/laptop-batteries/b/ACER.php这样可以,传递的参数值为$_GET["brand"]=ACERRewriteRule (.+)/(.+)\.php$ $1/b.php?brand=$2http://localhost/laptop-batteries/ACER.php这样不行,传递的参数值为$_GET["brand"]=b 谢谢aotianlong的热心解答RewriteRule (.+?)/(.+?)\.php$ $1/test1.php?brand=$2http://localhost/laptop-batteries/ACER.php传递的参数值为$_GET["brand"]=test1RewriteRule (.+?)/(.+?)\.php$ $1/test2.php?brand=$2http://localhost/laptop-batteries/ACER.php传递的参数值为$_GET["brand"]=test2每次都只把文件名传递过来 大家好,我们想做一个网站,价格4000元,有谁愿意的请联系我!!! 一个小问题 大家来看看 firefox 与js问题 求一简单流程源代码 file_get_contents函数跟哪些设置有关? 非常奇怪的问题. 高分请教一个php中对mysql建表的问题!! 怪了,我用这文件来切换用户的怎么不能用啊?? 如何让中文的文件名做联接? 高分相送 PHP4-----不能提交?!! Discuz在搜索时把关键词放入数据库的意义何在 下载文件时能否 不直接打开文件
这样http://localhost/file/aaa.php
得到的参数怎么是,应该是aaa才对呀
$_GET["brand"]=b;
哪写错了?
http://localhost/laptop-batteries/b/ACER.php
这样可以,传递的参数值为$_GET["brand"]=ACERRewriteRule (.+)/(.+)\.php$ $1/b.php?brand=$2
http://localhost/laptop-batteries/ACER.php
这样不行,传递的参数值为$_GET["brand"]=b
RewriteRule (.+?)/(.+?)\.php$ $1/test1.php?brand=$2
http://localhost/laptop-batteries/ACER.php
传递的参数值为$_GET["brand"]=test1RewriteRule (.+?)/(.+?)\.php$ $1/test2.php?brand=$2
http://localhost/laptop-batteries/ACER.php
传递的参数值为$_GET["brand"]=test2
每次都只把文件名传递过来