Pseudo static based on PHP

About PHP language, at the first let us to know about basic information. What is PHP? As a newbie perhaps you are curious about abbreviation of PHP. In fact, PHP will stand for Personal Home Page, later it changed to Hypertext Preprocessor. Its developer named Rasmus Lerdorf, which have worked in Yahoo company for more than decade. Along with PHP language development, now there are more and more functions adding into its application. By this time let us know about pseudo static based on the PHP development.

Pseudo Static

Pseudo static is relatively real static. In contrast with real static usually, in order to enhance the friendliness of search engines, we generate static pages from the content of articles. But some friends display some information for real time, or they also want to use dynamic scripts to solve some problems so static content can not be used to display website content. But this has lost the friendly side of search engines. How to find an intermediate way between them? This creates pseudo static technology. It is shown in the form of static pages such as HTML, but in fact it is handled by dynamic scripts such as ASP.


It is implemented with the 404 error handling mechanism of IIS (Internet Information Services). This is much more flexible than rewrite technology. Based on IIS, let me do the job for science publicity. IIS is the abbreviation of “Internet Information Services”. It is a basic Internet service based on running Microsoft Windows provided by Microsoft. Originally an optional package for Windows NT version, it was subsequently built in with Windows 2000, Windows XP Professional and Windows Server 2003, but there is no IIS in Windows XP Home version. IIS (internet Information Services) is a Web service components including Web server, FTP server (File Transfer Protocol), NNTP server (Network News Transfer Protocol) and SMTP server (Simple Mail Transfer Protocol) are respectively used for web browsing, file transferring, mail sending and news service etc.


At the First, set Site Attribute – custom errors, and find HTTP errors 404. Then edit attributes – > message type, select URL – > URL to fill in “/ index. Asp”, or your error handling page.


Thus, for example, when an user or web crawler accesses http://XXX/123.html (123 is the ID of the article in the database) because of these pages non-existent, 404 errors are triggered. Turning to index.asp.


Index.asp to add

CurrDomain=Request.ServerVariables(“HTTP_HOST”)-Current access domain name

CurrURL=Replace(Request.ServerVariables(“QUERY_STRING”),“404;http://”&CurrDomain&“:80”)-current access URL

The CurrURL at this time should be: 123.html.


In this way, the page, which the user is trying to access, is obtained. Then gain the article ID inside (should be 123) and use regular expression, and next extract the article content from the database then output to the showing page. Everything is Ok now.


The URL, that an user or web crawler has read, is the original URL. Meanwhile we can use dynamic technology to process the content. This is the result we want. It is a little simpler but the basic idea is about pseudo static.

Click Here For More Information.


Leave a Reply

Your email address will not be published.