Hello,
I posted a similar message a few weeks ago and got good help from this forum. I have this similar message but different.
I have a dating site, www.usmatch.info.
This page:
search_results.php?browse=1 (page1)
/search_results.php?pg=2&browse=1 (page2)
Here is the link code of the page:
<a href="search_results.php?browse=<? echo $gender["sb_id"];
?>">Browse <? echo $gender["sb_pr_desc"];?></a>
Here is the code for Page Next on the search_results.php file.
<a href="<? echo $_SERVER['PHP_SELF'];?>?pg=<?php echo ($pg+1); ?><?php echo "$strpass"; ?>" >
<?
}
?>
Next
<? if ($pg!=$pages && $pages<>0)
{
?>
</a>
Here is my .htaccess code:
RewriteEngine On
RewriteRule ^([^/]*)/([^/]*)\.html$ /search_results.php?pg=$1&browse=$2 [L]
RewriteRule ^american_singles_([^/]*)\.html$ /search_results.php?browse=$1 [L]
Here is what I want to get: http://www.usmatch.info/2/1.html (/3/1.html, /4/1.html, etc...)
It worked on the first page, when I moved to 2nd page, it does not friendly urls anymore.
Can you show me how to change the code for page 2 (next page)???
Big thanks.