This is actually about PHP and .HTACCESS with pagination. I’m trying to use clean urls because they’re SEO friendly and nicer to look at. This is how the original url looks (localhost):
And after using this HTACCESS rewrite rule,
RewriteRule ^listing/?([0-9]+) listing.php?listing=$1 [L,NC]
this is how the url looks:
That’s all working perfectly. Now I started using pagination (a library called Zebra Pagination) and clicking on the next page changes the url. Currently this is what it does:
(incorrect, plus it doesn’t go to page 2, it stays on page 1!)
On a normal test page without a clean url, this is what the pagination library adds to the url:
?page=2, that’s it.
How should I alter the rewrite rule to make the url look like this, or a working version?
My dozenth attempt (and fail):
RewriteRule ^listing/?([0-9]+)&page/([0-9]+) listing.php?listing=$1&page=$2 [L,NC]