Apache Web Server (standalone host user)
<ifmodule mod_rewrite.c>rewriteengine onrewritecond %{query_string} ^ (. *) $ rewriterule ^ (. *)/article-([0-9]+)-([0-9]+) \.html$ $1/portal.php?mod=view&aid=$2&page=$3 &%1rewritecond %{query_string} ^ (. *) $RewriteRule ^ (. *)/forum-(\w+)-([0-9]+) \.html$ $1/ forum.php?mod=forumdisplay&fid=$2&page=$3&%1rewritecond %{query_string} ^ (. *) $ rewriterule ^ (. *)/thread-([0-9]+)-([0-9]+)-([0-9]+] \.html$ $1/forum.php?mod=viewthread&tid=$2 &extra=page\%3d$4&page=$3&%1rewritecond %{query_string} ^ (. *) $RewriteRule ^ (. *)/ group-([0-9]+)-([0-9]+) \.html$ $1/forum.php?mod=group&fid=$2&page=$3&%1rewritecond %{ query_string} ^ (. *) $RewriteRule ^ (. *)/space-(USERNAME|UID)-(. +) \.html$ $1/home.php?mod=space &$2=$3&%1rewritecond %{query_string} ^ (. *) $RewriteRule ^ (. *)/blog-([0-9]+)-([0-9]+] \. html$ $1/home.php?mod=space&uid=$2&do=blog&id=$3&%1rewritecond %{query_string} ^ (. *) $RewriteRule ^ (. *)/(Fid|tid)-([0-9]+) \ . html$ $1/index.php?action=$2&value=$3&%1rewritecond %{query_string} ^ (. *) $RewriteRule ^ (. *)/([a-z]+[a-z0-9_]*)-([a-z0-9_\-]+) \.html$ $1/plugin.php?id=$2:$3&%1</ifmodule>
Apache Web Server (Virtual host user)
# will RewriteEngine mode open rewriteengine on# Modify the /discuz for your forum directory address in the following statement, If the program is placed in the root directory, change /discuz to /RewriteBase /discuz# Rewrite system rules do not modify Rewritecond %{query_string} ^ (. *) $RewriteRule ^article-([0-9]+)-([0-9]+) \.html$ portal.php?mod=view &aid=$1&page=$2&%1rewritecond %{query_string} ^ (. *) $RewriteRule ^forum-(\w+)-([0-9] +) \.html$ forum.php?mod=forumdisplay&fid=$1&page=$2&%1rewritecond %{query_string} ^ (. *) $RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+) \.html$ forum.php?mod=viewthread&tid=$1& extra=page\%3d$3&page=$2&%1rewritecond %{query_string} ^ (. *) $RewriteRule ^group-([0-9]+ )-([0-9]+) \.html$ forum.php?mod=group&fid=$1&page=$2&%1rewritecond %{query_string} ^ (. *) $RewriteRule ^space-(Username|uid)-(. +) \.html$ home.php?mod=space&$1=$2&%1rewritecond %{query_string} ^(. *) $RewriteRule ^blog-([0-9]+)-([0-9]+) \.html$ home.php?mod=space&uid=$1&do=blog&id=$2 &%1rewritecond %{query_string} ^ (. *) $RewriteRule ^archiver/(Fid|tid)-([0-9]+) \.html$ archiver/index.php?action=$1&value=$2&%1rewritecond %{query_string} ^ (. *) $RewriteRule ^ ([a-z]+[a-z0-9_]*)-([a-z0-9_\-]+) \.html$ plugin.php?id=$1:$2&%1
IIS Web Server (standalone host user)
[Isapi_rewrite]# 3600 = 1 hourcacheclockrate 3600repeatlimit 32# protect httpd.ini and httpd.parse.errors files# from accessing through httprewriterule ^ (. *)/article-([0-9]+)-([0-9]+) \.html (\? (. *)) *$ $1/portal\.php\?mod=view&aid=$2&page=$3&$5rewriterule ^ (. *)/forum-(\w+)-([0-9]+) \. HTML (\? (. *)) *$ $1/forum\.php\?mod=forumdisplay&fid=$2&page=$3&$5rewriterule ^ (. *)/thread-([0-9]+) -([0-9]+)-([0-9]+) \.html (\? (. *)) *$ $1/forum\.php\?mod=viewthread&tid=$2&extra=page\%3d$4&page=$3&$6rewriterule ^ ( . *)/group-([0-9]+)-([0-9]+) \.html (\? (. *)) *$ $1/forum\.php\?mod=group&fid=$2&page=$3&$5rewriterule ^ (. *)/space-(USERNAME|UID)-( . +) \.html (\? (. *)) *$ $1/home\.php\?mod=space&$2=$3&$5rewriterule ^ (. *)/blog-([0-9]+)-([0-9]+) \.html (\? (. *)) *$ $1/home\.php\?mod=space&uid=$2&do=blog&id=$3&$5rewriterule ^ (. *)/(Fid|tid)-([0-9]+) \.html (\? (. *)) *$ $1/index\.php\?action=$2&value=$3&$5rewriterule ^ (. *)/([a-z]+[a-z0-9_]*)-([a-z0-9_\-]+ ) \.html (\? (. *)) *$ $1/plugin\.php\?id=$2:$3&$5
IIS7 Web Server (standalone host user)
<rewrite><rules><rule name= "Portal_article" ><match url= "^ (. */) *article-([0-9]+) -([0-9]+). html\?* (. *) $ " /><action type=" Rewrite " url=" {r:1}/portal.php\?mod=view& aid={r:2}&page={r:3}& {r:4} " /></rule><rule name=" Forum_forumdisplay "><match url=" ^ (. */) *forum-(\w+ )-([0-9]+). html\?* (. *) $ " /><action type=" Rewrite " url=" {R:1}/forum.php\?mod=forumdisplay &fid={R:2}&page={R:3}& {r:4} " /></rule><rule name=" Forum_viewthread "><match url=" ^ (. */) *thread-([0-9 ]+)-([0-9]+)-([0-9]+). html\?* (. *) $ " /><action type=" Rewrite " url=" {r:1}/forum.php\?mod= viewthread&tid={r:2}&extra=page%3d{r:4}&page={r:3}& {r:5} " /></rule><rule name=" Group_group "><match url=" ^ (. */) *group-([0-9]+)-([ 0-9]+). html\?* (. *) $ " /><action type=" Rewrite " Url= "{r:1}/forum.php\?mod=group&fid={r:2}&page={r:3}& {r:4} " /></rule><rule name=" Home_space "><match url=" ^ (. */) *space-(username| UID)-(. +). html\?* (. *) $ " /><action type=" Rewrite " url=" {r:1}/home.php\?mod=space& {r:2}={r:3}& {r:4} " /></rule><rule name=" Home_blog "><match url=" ^ (. */) *blog-([0-9]+)-([0-9 ]+). html\?* (. *) $ " /><action type=" Rewrite " url=" {r:1}/home.php\?mod=space&uid={r :2}&do=blog&id={r:3}& {r:4} " /></rule><rule name=" Forum_archiver "><match url=" ^ (. */) * (Fid|tid)-([ 0-9]+). html\?* (. *) $ " /><action type=" Rewrite " url=" {r:1}/index.php\?action={r:2}& value={r:3}& {r:4} " /></rule><rule name=" plugin "><match url=" ^ (. */) * ([a-z]+[a-z0-9_]*)-([ a-z0-9_\-]+). html\?* (. *) $ " /><action type=" Rewrite " urL= "{r:1}/plugin.php\?id={r:2}:{r:3}& {R:4} " /></rule></rules></rewrite>
Zeus Web Server
match url into $ with ^ (. *)/article-([0-9]+)-([0-9]+) \.html\?* (. *) $if matched thenset url = $1/portal.php?mod=view&aid=$2&page=$3&$4endifmatch url into $ with ^ (. *)/forum-(\w+)-([0-9]+) \.html\?* (. *) $if matched thenset url = $1/forum.php?mod=forumdisplay&fid=$2&page=$3&$4endifmatch url into $ with ^ (. *)/thread-([0-9]+)-([0-9]+)-([0-9]+] \.html\?* (. *) $if matched thenset url = $1/forum.php?mod=viewthread&tid=$2&extra=page\%3d$4&page=$3&$5endifmatch url into $ with ^ (. *)/group-([0-9]+)-([0-9]+) \.html\?* (. *) $if matched thenset url = $1/forum.php?mod=group&fid=$2&page=$3&$4endifmatch url into $ with ^ (. *)/space-(USERNAME|UID)-(. +) \.html\?* (. *) $if matched thenset url = $1/ Home.php?mod=space&$2=$3&$4endifmatch url into $ with ^ (. *)/blog-([0-9]+)-([0-9]+) \.html\?* (. *) $if matched thenset url = $1/home.php?mod=space&uid=$2&do=blog&id=$3&$ 4endifmatch url into $ with ^ (. *)/(Fid|tid)-([0-9]+) \.html\?* (. *) $if matched thenset url = $1/index.php?action=$2&value=$3&$4endifmatch url into $ with ^ (. *)/([a-z]+[a-z0-9_]*)-([a-z0-9_\-]+) \.html\?* (. *) $if matched thenset Url = $1/plugin.php?id=$2:$3&$4endif
Nginx Web Server
rewrite ^ ([^\.] *)/article-([0-9]+)-([0-9]+) \.html$ $1/portal.php?mod=view&aid=$2&page=$3 last;rewrite ^([^\.] *)/forum-(\w+)-([0-9]+) \.html$ $1/forum.php?mod=forumdisplay&fid=$2&page=$3 last;rewrite ^ ([^\.] *)/thread-([0-9]+)-([0-9]+)-([0-9]+) \.html$ $1/forum.php?mod=viewthread&tid=$2&extra=page%3d$4 &page=$3 last;rewrite ^ ([^\.] *)/group-([0-9]+)-([0-9]+) \.html$ $1/forum.php?mod=group&fid=$2&page=$3 last;rewrite ^ ( [^\.] *)/space-(USERNAME|UID)-(. +) \.html$ $1/home.php?mod=space&$2=$3 last;rewrite ^ ([^\.] *)/blog-([0-9]+)-([0-9]+) \.html$ $1/home.php?mod=space&uid=$2&do=blog&id=$3 last;rewrite ^ ([^\.] *)/(Fid|tid)-([0-9]+) \.html$ $1/index.php?action=$2&value=$3 last;rewrite ^ ([^\.] *)/([a-z]+[a-z0-9_]*)-([a-z0-9_\-]+) \.html$ $1/plugin.php?id=$2:$3 last;if (!-e $request _ filename) {return 404;}
Anti-theft chain settings