下面是我正在使用的htaccess文件。我有一个作为domain.com/?page=1的分页url。现在,它只获取第一页记录,而不获取下一页记录,即使domain.com/?page=2传递给url也是如此。我怀疑这是由于url重写造成的,因为它在本地主机上工作得很好,而在服务器端,它只获取第一页记录。
<IfModule mod_rewrite.c>
AddHandler application/x-httpd-php72 .php
RewriteEngine On
# Removes index.php from ExpressionEngine URLs
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?url=$1 [PT,L]
</IfModule>发布于 2019-02-22 17:43:08
通过将重写url更改为RewriteRule ^(.*)$ index.php?url=$1 [QSA,PT,L]。它解决了我的问题
https://stackoverflow.com/questions/54823199
复制相似问题