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.
using the Web interface When installing network devices, such as network cards, we seem to inevitab
The story about IIS 6.0 is hard to say, if you have invested in IIS technology, IIS 6.0 is undoubted
Now many customers are based test as an excuse to come after the test machine or
with Hpyer-V Why choose Microsoft Private Cloud In the enterprise, the deployment of private clouds
Serv-U login welcome parameter setting technique
Server Management Maintenance: Clear DNS Cache
Breaking distance limits Server remote management two skills
Server Cluster High Availability: DNS and Failover
DNS resolution service method and error resolution method
How to install Microsoft IIS5.1 installation file
Solution for server errors in the "/" application (two cases)
Linux server after a serious fault handling method
Top ten server monitoring tools in foreign countries to help you keep abreast of the situation
Explain IIS website server performance optimization cheats thirteen articles
How to set up Win8 automatic networking without manual click broadband connection
Ubuntu founder: "Enterprise Linux is not only Red Hat"
How to change the Win10 network list to Win8.1 mode?
CPU test tool software tutorial
Domain name resolution process
Win8 system MadobeYu.deskthemepack theme invalid how to deal with?
Dnzg:Win8.1 9369 version added to MetroUI file manager