What is Pseudo-Static state?

  

As the name implies, pseudo-static is relatively static. Generally, in order to better alleviate server pressure and enhance the friendly side of the search engine, the content of the article is generated as a static page. However, some friends display it in real time. Some information. Or I want to use dynamic scripts to solve some problems. I can't display the content of the website in a static way. But this loses the friendly side of the search engine. How to find an intermediate method between the two, this is Produced a pseudo-static technology. It is displayed in the form of a static page of .html, but it is actually handled by a dynamic script like ASP.

One of my ideas is to use IIS 404. The error handling mechanism is implemented. This is much more flexible than the rewrite technique.

First, set the site properties - customize the error, find the HTTP error 404, and then edit the property -> message type check URL -> URL fill in “/index.asp”, or your error handling page.

This way, for example, when a user or spider visits http://sos.45it.com/c-1.html (c -1 for the article in the database ID). Due to some pages Existed, so triggered a 404 error. Turned to index.asp in index.asp plus CurrDomain=Request.ServerVariables("HTTP_HOST") 'Current access to domain name CurrURL=Replace(Request.ServerVariables("QUERY_STRING"),"404 ;http://"&CurrDomain&":80","") 'Current access URL CurrURL at this time should be: c-1.html .

This will get the user The page you are trying to access. Then extract the article ID inside (it should be: 12345), use regular, here is not much to say.

Then extract the article content from the database. Output to the page, OK.

This way, the URL that the user or spider sees is the URL he visits. And we can use dynamic technology for the content processing. This is the result we want. It is a bit simpler. But the basic idea is like this.

Copyright © Windows knowledge All Rights Reserved