Static or dynamic?

xiaoxiao2021-03-06  100

Sometimes when browsing foreign websites, you will see uncommon extensions from the webpage. From the extension, you can't see what technology they use, or is a static page or a dynamic web page. Some surfaces are .htm or .html, actually dynamic program files. Here, it involves a static-dynamic mapping problem. Commonly known:

1. Direct settings, extensions are .htm or .html can also be set to program file execution in the background.

2, Web Server implementation, some web server has a static-> dynamic page mapping function. For example, there is a non-default module MOD_REWRITE on the Apache server. You can use a regular expression to convert the dynamic page to a static page. For example, show.asp? Para = 111 is mapped to a static page such as Show / 111.html. When you encounter Show / 111.html request, Apache automatically directed to show.asp? Para = 111.

3, the background program implementation, using the background program to map the client's request address to the corresponding program execution.

转载请注明原文地址:https://www.9cbs.com/read-124440.html

New Post(0)