DZ Forum in windows2008r2+iis7.5 environment X3 version Pseudo-static setup tutorial

Source: Internet
Author: User

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&amp;topic={r:2}&amp; {R:3} " />                </Rule>                <Rulename= "Portal_article">                    <MatchURL= "^ (. * *) *article-([0-9]+)-([0-9]+). html\?* (. *) $" />                    <Actiontype= "Rewrite"URL= "{r:1}/portal.php\?mod=view&amp;aid={r:2}&amp;page={r:3}&amp; {R:4} " />                </Rule>                <Rulename= "Forum_forumdisplay">                    <MatchURL= "^ (. * *) *forum-(\w+)-([0-9]+). html\?* (. *) $" />                    <Actiontype= "Rewrite"URL= "{r:1}/forum.php\?mod=forumdisplay&amp;fid={r:2}&amp;page={r:3}&amp; {R:4} " />                </Rule>                <Rulename= "Forum_viewthread">                    <MatchURL= "^ (. */) *thread-([0-9]+)-([0-9]+)-([0-9]+]. html\?* (. *) $" />                    <Actiontype= "Rewrite"URL= "{R:1}/forum.php\?mod=viewthread&amp;tid={r:2}&amp;extra=page%3d{r:4}&amp;page={r:3}&amp ; {R:5} " />                </Rule>                <Rulename= "Group_group">                    <MatchURL= "^ (. * *) *group-([0-9]+)-([0-9]+). html\?* (. *) $" />                    <Actiontype= "Rewrite"URL= "{r:1}/forum.php\?mod=group&amp;fid={r:2}&amp;page={r:3}&amp; {R:4} " />                </Rule>                <Rulename= "Home_space">                    <MatchURL= "^ (. * *) *space-(USERNAME|UID)-(. +). html\?* (. *) $" />                    <Actiontype= "Rewrite"URL= "{r:1}/home.php\?mod=space&amp; {r:2}={r:3}&amp; {R:4} " />                </Rule>                <Rulename= "Home_blog">                    <MatchURL= "^ (. * *) *blog-([0-9]+)-([0-9]+). html\?* (. *) $" />                    <Actiontype= "Rewrite"URL= "{r:1}/home.php\?mod=space&amp;uid={r:2}&amp;do=blog&amp;id={r:3}&amp; {R:4} " />                </Rule>                <Rulename= "Forum_archiver">                    <MatchURL= "^ (. * *) * (Fid|tid)-([0-9]+). html\?* (. *) $" />                    <Actiontype= "Rewrite"URL= "{r:1}/index.php\?action={r:2}&amp;value={r:3}&amp; {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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.