I have applied the class of pagination in the search result to page search-result.php
. When i click on the number link of pages like 2 in 1 2 3 4 5 ... 10
then it redirects me to index.php?page=2
. But the search paging result is shown on search-result.php
page. The link should be search-result.php?page=2
This page (search-result.php
) is also being used for url rewriting. rule is something like:
RewriteRule ^([a-zA-Z0-9-]+)/([a-zA-Z0-9-]+)$ search-result.php?t=$1&slug=$2 [L]
RewriteRule ^([a-zA-Z0-9-]+)/([a-zA-Z0-9-]+)$ search-result.php?t=$1&slug=$2 [L]
Please help me about this issue. Thanks