更新时间:2023-02-24 09:47:39
我认为您的问题是倒退的,尤其是在您寻找更简洁的URL时.
I think your question is backwards, especially if you are looking for cleaner URLs.
RewriteEngine On
RewriteRule ^newProject/page/(\d+)$ /newProject/index.php?start=$1
我假设您的用户将单击/newProject/page/2
之类的URL,并且newProject/index.php
处的PHP脚本将访问$_GET['start']
来读取页码.
I assume that your users will click on URLs like /newProject/page/2
, and a PHP script at newProject/index.php
will access $_GET['start']
to read the page number.