【发布时间】:2014-01-03 09:14:00
【问题描述】:
我有 htaccess 文件和分页搜索引擎, 这是我的搜索引擎表单
<form class='fright' method='get' action='hasil_cari=' onsubmit="return false;">
<input class='srcText' style='padding:6px;'type='text' name='keyword'>
<input class='submit' style='padding:5;' type='submit' value='find' onclick="window.location.href=this.form.action + this.form.keyword.value;">
</form>
这是我的干净 url 的重写规则
RewriteRule ^admin/keyword=(.*)-page=(.*)$ admin/index.php?h=home&m=find&keyword=$1&p=$2 [L]
然后我点击第 2 页,但 '-page=2' 读取为关键字,因此出现了我创建的错误消息
在我的浏览器地址栏中:localhost/project/admin/keyword=....-page=2
“找不到数据=.....-page2”
谁能解决?
【问题讨论】:
标签: php html .htaccess pagination