URL如下
http://www.xxx.cn/index.php/Goods/goodsQuery/p/2
经过URL重写,屏蔽掉index.php后,变成了下面的格式
http://www.xxx.cn/Goods/goodsQuery/Goods/goodsQuery//p/2
多出一个/Goods/goodsQuery/
thinkphp中配置如下:
URL_MODEL设置为2
.htaccess文件配置为
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
</IfModule>
请大侠帮忙解决问题。谢谢了。
最佳答案