我有一个用htaccess规则创建的网址:
http://domain.com/foldername/name-in-location
这工作正常,当在此网址上并点击第2页时,它变为
http://domain.com/foldername/name-in-location?page=2
我希望将name-in-location?page=2
替换为name-in-location/page-2
我当前的.htaccess
如下所示:
RewriteCond %{THE_REQUEST} \ /+foldername/([^&]+)?page=([^&]+)
RewriteRule ^ /JustFind/([^&]+)/%1? [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d –