Open discuz Forum URL static function under IIS

Source: Internet
Author: User
Start work: 1, first we want to download the IIS rewrite module:     online has a lot of IIS rewrite modules to provide downloads, you can find back. If you can't find it, you can use the IIS rewrite module package that I provided. The download address is: Http://www.545600.com/download/IISRE.rar 2, Telnet to the server or operation on the server:     after the download back of the IIS rewrite module decompression, Put in a directory, recommended in C disk, with the PHP interpreter put together, must be the two are mixed effect. such as: C:/php/rewrite directory. 3, open the IIS Information Service Manager 4, choose DZ Forum site, right click and then take its properties. 5, select the ISAPI filter page and click the Add button. 6. In "Filter Name (F):" Enter "Rewrite", in "Executable (e):" Enter "C:/php/rewrite/rewrite.dll" Note: in "executable (e):" The address entered is, is the absolute address on the server, If your rewrite file is not c:/php this directory, you must specify the correct address for it. You can also click the "browse (B)" button below to select its absolute address. 7, after the configuration is good, we can click OK button out of the Site property settings. 8, the preparation of Httpd.ini file is based on the rewrite rules of the configuration file, must be carefully prepared. If not, you can copy the following code into the Httpd.ini configuration file. ---------------------------------------------------------------------CODE: [isapi_rewrite] # 3600 = 1 hour Cacheclockrate 3600 repeatlimit Protect Httpd.ini and httpd.parse.errors files # from accessing through HTTP rewriter Ule ^ (. *)/archiver/([a-z0-9/-]+/.html) $ $1/archiver/index/.php/?$2 rewriterule ^ (. *)/forum-([0-9]+)-([0-9]+)/.html $ $1/forumdisplay/.php/?fiD=$2&page=$3 rewriterule ^ (. *)/thread-([0-9]+)-([0-9]+)-([0-9]+)/.html$$1/viewthread/.php/?tid=$2&extra= Page/%3d$4&page=$3 rewriterule ^ (. *)/profile-(USERNAME|UID)-(. +)/.html$ $1/viewpro/.php/?$2=$3--------------- ---------------------------------------------------Note: Friends who are unfamiliar with rewrite writing rules must not change their content. The file is already available in the download package I provided, and be careful not to change its contents.     put the written Httpd.ini file in your "Rewrite" file directory just now. 9, switch back to the IIS Information Services Manager, right click on the Web server, select "Restart IIS" to determine the reboot after the system will ask a question once again, to determine again, a little wait for a moment IIS restarted well. At this point, we can disconnect the remote link or leave the server. Rewrite.dll This plugin is not supported by many virtual host operators. So before buying space must ask clearly whether support the plug-in 10, back to their own computer, open the Forum page, as an administrator login DZ forum backstage. 11, login backstage, select the "Basic Settings" tab, and then point to the left navigation bar on the "Search Engine Optimization" column. In the Enable archiver: option, select the full enable option. 12. After submitting "Search engine optimization", we Choose "Forum function" column from the left navigation bar.     in the column "URL static:", we choose the option to "archiver and normal page are static" this feature option. The URL is statically completed after submission. Return to the previous page, enter the site domain name, such as: http://www.adminbbs.net we point the mouse to the various links to the forum, you can see the end of the. HTML link to the static URL. Click inside to see if it feels good. is not very simple. have permission to control the IIS server again want to put their dz. Forum URL Static, may wish to try it right away. Hint: url static is not generated static page, if you want to Http://www.adminbbs.net/bbs/forum-48-1.hTML Way to login forum, that is not, but the internal link is OK, the system only static URL link, and did not generate a real static page, so it will not give you a static page speed sense, on the contrary, will slightly aggravate the burden of the server.

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.