Topic: Mod rewrite pagination problem
Im trying to make "Clean Urls" and it's all working greath exept for the paginating part, I wat to turn :
http://localhost/pun/topic/viewtopic.php?id=4&p=2
into
http://localhost/pun/topic/4/sub/2
This is the code that needs to be changed (viewtopic.php), but no matte what I tried I couldnt remove the "&p=" from the variable $id
Any help on this would be very welcome, once this is finished I will post the entire code in here so everybody who wants
this code (and I know there are a lot of you out there) will have it. Thanks in advance
$num_pages = ceil(($cur_topic['num_replies'] + 1) / $pun_user['disp_posts']);
$p = (!isset($_GET['p']) || $_GET['p'] <= 1 || $_GET['p'] > $num_pages) ? 1 : $_GET['p'];
$start_from = $pun_user['disp_posts'] * ($p - 1);
// Generate paging links
$paging_links = $lang_common['Pages'].': '.paginate($num_pages, $p, 'viewtopic.php?id='.$id);