thinkphp中翻页时遇到的URL重写时的问题,多了一个斜杠

WBOY
Release: 2016-06-23 14:12:19
Original
1027 people have browsed it

本帖最后由 wadelin511 于 2013-06-06 12:04:09 编辑

thinkphp 翻页 URL重写


原本可以进行的翻页,
URL如下
app/index.php/search/recommendgoods/shop_id/1/p/2

经过URL重写,屏蔽掉index.php后,变成了下面的格式

app/search/recommendgoods //s hop_id/1/p/2

另外奇怪的是,一部分翻页是没有问题的,一部分翻页多了一个斜杠。

thinkphp中配置如下:
URL_MODEL设置为2

.htaccess文件配置为

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
 


请大侠帮忙解决问题。谢谢了。

回复讨论(解决方案)

求助,在线等!

已解决。翻页处理中没有对$Page->parameter进行设置。

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template