First Open your index forum
Find:
$tree[] = '<a href="index.php?id=' . $parent . '">' . $res['text'] . '</a>';
Change to:
$tree[] = '<a href="'.$config['homeurl'].'/forum/' . $tools->Rewrite($res['text']) . '_' . $parent . '.html">' . $res['text'] . '</a>';
Find:
echo '<a href="?id=' . $res['id'] . '">' . $res['text'] . '</a>';
Change to:
echo '<a href="'.$config['homeurl'].'/forum/' . $tools->Rewrite($res['text']) . '_' . $res['id'] . '.html">' . $res['text'] . '</a>';
Find:
echo '<a href="index.php?id=' . $res['id'] . '">' . (empty($res['text']) ? '-----' : $res['text']) . '</a> [' . $colmes . ']';
Change to:
echo '<a href="'.$config['homeurl'].'/forum/' . $tools->Rewrite($res['text']) . '_' . $res['id'] . '.html">' . (empty($res['text']) ? '-----' : $res['text']) . '</a> [' . $colmes . ']';
Find:
echo '<a href="index.php?id=' . $res['id'] . '&page=' . $cpg . '"> >></a>';
Change to:
echo '<a href="'.$config['homeurl'].'/forum/'.$tools->Rewrite($res['text']) . '_' . $res['id'] . '_p' . $cpg . '.html"> >></a>';
Find:
echo '<div class="topmenu">' . $tools->displayPagination('index.php?id=' . $id . '&', $start, $total, $kmess) . '</div>';
Change to:
echo '<div class="topmenu">' . $tools->displayPagination2(''.$config['homeurl'].'/forum/'.$tools->Rewrite($type1["text"]).'_' . $id, $start, $colmes, $kmess) . '</div>';
Find:
echo '...<a href="index.php?act=post&id=' . $postres['id'] . '">' . _t('Read more') . '</a>';
Change to:
echo '...<a href="'.$config['homeurl'].'/forum/'.$tools->Rewrite($type1['text']) . '_p' . $postres['id'] . '.html">' . _t('Read more') . '</a>';
Find:
echo '<a href="index.php?id=' . $res['id'] . '">' . $res['text'] . '</a> [' . $count . ']';
Change to:
echo '<a href="' . $config['homeurl'] . '/forum/' . $tools->Rewrite($res['text']) . '_' . $res['id'] . '.html">' . $res['text'] . '</a> [' . $count . ']';
Done! Save this index forum, now go to .htaccess
open and add this new line
RewriteEngine On
RewriteBase /
RewriteRule ^forum/(.*)_([0-9]+).html$ forum/index.php?id=$2 [L]
RewriteRule ^forum/(.*)_([0-9]+)_p([0-9]+).html$ forum/index.php?id=$2&page=$3 [L]
RewriteRule ^forum/(.*)_p([0-9]+).html$ forum/index.php?act=post&id=$2 [L]
RewriteRule ^forum/(.*)_([0-9]+)_s([0-9]+).html$ forum/index.php?id=$2&start=$3 [L]
RewriteRule ^forum/(.*)_([0-9]+)_clip_p([0-9]+).html$ forum/index.php?id=$2&clip&page=$3 [L]
Done! save this .htaccess
Now go to Tools.php on system/johncms/ dirctory
Download the attach and read,
copy all script on the Rewrite.txt,
put to Tools.php.
Done, Now tested your code.. enjoyed this modified for full time and free time
Regard: Gabriel