У меня в .htaccess:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(rus/|ukr/|blr/|de/|frn/|eng/)?([0-9a-z/-]+)?(/[a-z_0-9]+.html)?$ index.php?lang=$1&link=$2&html=$3&mod=1&query= [NC,QSA,L]
А в common.php
PHP:
if($CONFIG["rewrite_mod"] && $_GET["mod"] == 1 && $_GET["html"]!=""){
$html = $_GET["html"];
$html = "action_".substr($html, strpos("/", $html)+1);
$html = str_replace(".html", "_", $html);
if(preg_match_all ("/([a-z0-9]+)?_([a-z0-9]+)?_/i", $html, $param)){
foreach($param[1] AS $key => $value ){
$tmp = "request_$value";
$$tmp = $param[2][$key];
$query_string .= "$value=$key&";
}
}
$html = "";
}
Это работает со всеми модулями ...