DZ Forum in windows2008r2+iis7.5 environment X3 version Pseudo-static setup tutorial
Because 2008r2 is not so popular, plus X3 version of the new soon, so the pseudo-static set of tutorials less, today made out, in fact, very simple, then the following to give you a brief explanation.
Because iis7.5 integrates the URL rewrite, it is more convenient, first installed your DZ forum, then in your root directory (of course, some people also installed the forum to the level two directory) to create a Web. config file, and then paste the following code in it.
<?XML version= "1.0" encoding= "UTF-8"?><Configuration> <system.webserver> <rewrite> <rules> <Rulename= "Portal_topic"> <MatchURL= "^ (. * *) *topic-(. +). html\?* (. *) $" /> <Actiontype= "Rewrite"URL= "{r:1}/portal.php\?mod=topic&topic={r:2}& {R:3} " /> </Rule> <Rulename= "Portal_article"> <MatchURL= "^ (. * *) *article-([0-9]+)-([0-9]+). html\?* (. *) $" /> <Actiontype= "Rewrite"URL= "{r:1}/portal.php\?mod=view&aid={r:2}&page={r:3}& {R:4} " /> </Rule> <Rulename= "Forum_forumdisplay"> <MatchURL= "^ (. * *) *forum-(\w+)-([0-9]+). html\?* (. *) $" /> <Actiontype= "Rewrite"URL= "{r:1}/forum.php\?mod=forumdisplay&fid={r:2}&page={r:3}& {R:4} " /> </Rule> <Rulename= "Forum_viewthread"> <MatchURL= "^ (. */) *thread-([0-9]+)-([0-9]+)-([0-9]+]. html\?* (. *) $" /> <Actiontype= "Rewrite"URL= "{R:1}/forum.php\?mod=viewthread&tid={r:2}&extra=page%3d{r:4}&page={r:3}& ; {R:5} " /> </Rule> <Rulename= "Group_group"> <MatchURL= "^ (. * *) *group-([0-9]+)-([0-9]+). html\?* (. *) $" /> <Actiontype= "Rewrite"URL= "{r:1}/forum.php\?mod=group&fid={r:2}&page={r:3}& {R:4} " /> </Rule> <Rulename= "Home_space"> <MatchURL= "^ (. * *) *space-(USERNAME|UID)-(. +). html\?* (. *) $" /> <Actiontype= "Rewrite"URL= "{r:1}/home.php\?mod=space& {r:2}={r:3}& {R:4} " /> </Rule> <Rulename= "Home_blog"> <MatchURL= "^ (. * *) *blog-([0-9]+)-([0-9]+). html\?* (. *) $" /> <Actiontype= "Rewrite"URL= "{r:1}/home.php\?mod=space&uid={r:2}&do=blog&id={r:3}& {R:4} " /> </Rule> <Rulename= "Forum_archiver"> <MatchURL= "^ (. * *) * (Fid|tid)-([0-9]+). html\?* (. *) $" /> <Actiontype= "Rewrite"URL= "{r:1}/index.php\?action={r:2}&value={r:3}& {R:4} " /> </Rule> </rules> </rewrite> <defaultdocument> <Files> <Clear/> <Addvalue= "Index.asp" /> <Addvalue= "dufault.html" /> <Addvalue= "default.htm" /> <Addvalue= "Default.asp" /> <Addvalue= "Index.htm" /> <Addvalue= "Index.html" /> <Addvalue= "Iisstart.htm" /> <Addvalue= "default.aspx" /> <Addvalue= "index.php" /> </Files> </defaultdocument> </system.webserver></Configuration>
Then you just need to restart your site in the ISS manager to implement pseudo-static and test it yourself.
DZ Forum in windows2008r2+iis7.5 environment X3 version Pseudo-static setup tutorial