Search Expression Technology Innovation report: Intelligent 404 Static Fill Generation system

Source: Internet
Author: User
Keywords DZ realization technical innovation posts

Search expression QQ expression search engine by the site's own research and development, using a number of technical innovation. such as using 404 error system to automatically generate static files, HTML automatic timing update, the use of http://www.aliyun.com/zixun/aggregation/11656.html "> Discuz Forum for the background of the CMS Article Management System (DZ CMS), multi-user image search engine and so on. One expression search engine to discuz plug-in form to achieve, the backstage part has the Universal Picture collector, facilitates does not understand gathers the entry member to use. Here is a detailed description of some of the technical details of the site.

First, developed a new Discuz home system DZ CMS.

The traditional DZ home page is very common, although the appearance of a site, but only as a forum navigation use, click on the content is still to enter the forum page. And DZ as an interactive forum, there is no real implementation of the whole station static. His pseudo static can only be used as SEO tools, and can not play a role in reducing system consumption. (DZ increases the load using a caching system). In response to these problems, the site developers Bold innovation, research and development of a set of solutions, optimized DZ as a site to use the performance and effectiveness, the implementation of DZ background. The following content is achieved:

1, has two level page. Not a forum post list, but a dedicated level two page

2, not all forum posts can be the first page and column page, only the essence of the list can be listed (also can be fixed theme list), played a post audit role.

3, has the specialized content Display page, but is not the forum post form display

4, the final content Display page All rebuild, rewrite content read, picture, flash display UBB processing, to make it more suitable as a website needs

5, the system and DZ combined mode for the template column and forum column ID corresponding, and do not need to dz the source program to make any changes, fully inherited DZ's security, all content management operations are completed in the Forum front desk. You just have to set the permissions on the column.

6, the entire content of the site static, more in line with the needs of the site. In order not to change the DZ source to achieve static generation, specially developed 404 intelligent automatic filling and HTML Automatic Update system, described in detail below.

Two, break the traditional static generation way

In a traditional CMS, such as Dede, you need to generate static or update static files in the background after publishing the article. It's quite troublesome and time-consuming. And the Department of the background is DZ Forum, because in order to maintain security, it requires no DZ source code to make any changes, so can not set the normal static update system, and finally developed a new solution to meet the requirements. Do the automatic generation, timing update. Make the site management very convenient, the following is said to implement the method and the technology used.

1, using 404 error intelligent automatic generation of static:

Traditional CMS has batch update or batch generation function. This system does not need a very time-consuming batch generation at all. Because we use smart 404 files to generate static pages that don't exist. The whole system works as follows:

When I publish an article and set it as the essence, let it appear in the content list of the Web site. After updating the content list, the link is not directed to the forum post, but to the HTML static file with a specific filename based on the column ID and post ID. And this time the HTML doesn't exist. When this link is clicked, because the file does not exist, the system directs the browser to the 404 error page, And the site of the 404 error page is called 404.php dynamic file, intercepting the system sent error messages, and according to the nonexistent file name and path, using regular analysis, if this is a specific rule named file, together with the results of the analysis into the corresponding static generator, and the generator in accordance with the parameters passed 404 in the appropriate place to generate a Rule to name the HTML file and jump to this file. The whole process is less than 1 seconds and you won't notice that the page you're looking at doesn't exist when you click it.

Related Article

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.