Discuz forum for website integration

Source: Internet
Author: User

 

Place discuz In the BBS folder under the root directory of the website, and put DNT. config and web. config under the root directory. Web. config integrates the Web. config of the website.

Integration Method: Add the following content in Web. config:

<Location Path = "BBS" AllowOverride = "false">
<System. Web>

<Compilation
Defaultlanguage = "C #"
DEBUG = "true"
/>

<Authorization>
<Allow users = "*"/>
</Authorization>

<Trace
Enabled = "false"
Requestlimit = "10"
Pageoutput = "false"
Tracemode = "sortbytime"
Localonly = "true"
/>

<Customerrors mode = "off"/>

<Globalization requestencoding = "UTF-8" responseencoding = "UTF-8" fileencoding = "UTF-8"/>

<! -- Httpmodules section has been deleted -->

<! -- The following stylesheettheme = "" is newly added -->
<Pages enableviewstatemac = "false" enableeventvalidation = "false"
Validaterequest = "false" stylesheettheme = ""
Viewstateencryptionmode = "never"/>

<Xhtmlconformance mode = "Legacy"/>

<Httpruntime maxrequestlength = "2097151" executiontimeout = "3600"/>

<WebServices>
<Protocols>
<Add name = "httpget"/>
<Add name = "httppost"/>
</Protocols>
</WebServices>

</System. Web>

</Location>

 

Add <add type = "discuz. forum. httpmodule, discuz. forum "name =" httpmodule "/> note that this sentence should be placed at the end of the node.

 

 

Modify the <forumpath> node content in DNT. config to <forumpath>/BBS/</forumpath>.

 

 

In this way, the integration is complete.

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.