IPB rewrite rule
IPB rewrite rule in class_display.php
//—————–rewrite
function _replace_mod_rewrite(&$rewrite_srting)
{
global $ibforums;
//return $rewrite_srting;
$urlin = array(
“‘index.php\?act=idx'”,
“‘index.php\?showforum=([0-9]*)'”,
“‘index.php\?showtopic=([0-9]*)'”,
“‘index.php\?showuser=([0-9]*)'”,
“‘index.php\?showtopic=([0-9]*)&view=getnewpost'”,
“‘index.php\?showtopic=([0-9]*)\&st=([0-9]*)'”,
);
$urlout = array(
“”,
“forum\\1.html”,
“topic\\1.html”,
“user\\1.html”,
“latest\\1.html”,
“st/\\1/”,
);
$rewrite_srting = preg_replace($urlin, $urlout, $rewrite_srting);
return $rewrite_srting;
}
//——————-rewrite end