How to make dynamic web pages truly static

Source: Internet
Author: User
How to make dynamic web pages Real and static. most of the methods to achieve static search for some infrequently changed dynamic web pages on the website are to generate the corresponding static html pages for the code of these dynamic pages. my problem is, how can I transfer requests to dynamic pages to corresponding static pages in the future ?? Some people say that urlrewrite is used, but it will never be able to access dynamic pages. because all requests are relocated to static pages, how can we achieve true and static dynamic web pages?
I want to make some dynamic web pages on the website static that do not change frequently.
Most of the methods found on the Internet are to generate static html pages for the code of these dynamic pages.

My question is, how can I transfer requests to dynamic pages to corresponding static pages in the future ??
Some people say that url rewrite is used, but it will never be able to access dynamic pages. because requests are relocated to static pages, dynamic pages cannot update their content.

I want these dynamic pages to generate the corresponding static pages. these static pages are kept in cache for one day. The next day, dynamic pages can be updated again ????

------ Solution --------------------
PHP stores the page to a file. The next time you read the file directly, it passes through PHP.

The convenient method is to replace the Smarty template, and the silly one is ob.
------ Solution --------------------
Discussion

I didn't just go to PHP when I needed to update the page. Other methods of directly requesting static pages?

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.