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

 

妙法限制外域下载

downlaod accss for domain only in httpd

#SetEnvIfNoCase Referer “^http://(.)+\.cqu\.edu\.cn/” local_ref=1
#SetEnvIfNoCase Referer “^http://(.)+\.202\.79\.10/” local_ref=1
#SetEnvIfNoCase Referer “^https://(.)+\.cqu\.edu\.cn/” local_ref=1
#SetEnvIfNoCase Referer “^https://(.)+\.202\.79\.10/” local_ref=1
#SetEnvIf Request_URI “/logo(.)+” local_ref=0
#<FilesMatch “\.(mp3:wmv:png:gif:jpg:rm:rmvb:avi:gz)”>
#Order Allow,Deny
#Allow from env=local_ref
#</FilesMatch>