可以用正则写这样的吗? 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每次都只把文件名传递过来 为什么WAMP里PHP开户了display errors后不能创建图片 php 访问slice文件 Ice_loadProfile版本不兼容问题求助 求教linux下的文本编辑器 求大家帮忙解决一下,急!急!急! 大家帮我看看我这段代码出错在那里 怎么找不到config.inc.php(在线等......) php做的web页面提交后能传值到多个业面么? 对比数据表查询问题! 快问快答,在线等待! 关于php递归返回值的困惑 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
每次都只把文件名传递过来