What is the pseudo-static?
Pseudo-Static is that static page use URL rewrite methods to achieve removing the parameters of static pages. But the actual web page directory, there is no need to achieve the pages existing rewrite.
Pseudo-static generated in 2 ways:
1 Frame-type pseudo-static
This is very simple and is very easy to recognize. Its principle is relatively simple that make a static main frame page, then link static content to deputy framework, which is one from its URL will be able to see the prospect of a solution. If the entire sites URL are the same, then it must be the framework of pseudo-static.
2 Use the components to make asp postfix shown as htm.
The principle of this method is a little difficult. It mainly uses a component to make the asp file postfix by the strong hand as htm. For customers, it is difficult to distinguish, because the showing links end in. htm.
What is the use of pseudo-static?
We do pseudo-static for the purpose:
The main thing is to meet the search engine that is search engine spider snatch at the relevant web page content!
We know that in search engine optimization, new_1234.html is more easily included than new.asp? Id = 1234.
Generally, for friends having independent servers, you can use ISAPI_Rewrite method to write pseudo-static rules. But for friends having only virtual space, maybe you can generate HTML by using some ASP system to help you. Today, I will focus on using ISAPI_Rewrite to build pseudo-static.
First:
We first need to download an ISAPI_Rewrite. There are Starter Edition and full version. The general global Starter Edition can be configured on the server, while the full version can do pseudo-static configuration to each site on the server. For individual owners, the Starter Edition will suffice.
Second:
Download is complete. Find. Msi file of equipment bag. Then set it.
Third:
Open the Internet news service. Right-click the web site properties. Click the ISAPI filters tab. Add the filter, where the name can be free to fill out their own, Attach to Path as ISAPI_Rewrite.dll, then OK.
Now we do first a test page new.asp, in accordance with the following code to write. Then, enter “http://127.0.0.1/new.asp?id=1234″ in the browser. Then you can see a line of text on the page: “1234″. Seeing these figures shows you a success test.
Now we start to configure ISAPI_Rewrite:
Open ISAPI_Rewrite directory. Remove httpd.ini read-only attribute. Open the Edit. We now need to revise new.asp? Id = 1234 to a similar new_1234.html path. Thus, we need to add in httpd.ini: RewriteRule /new_([0-9,a-z]*).html /new.asp?id={GetProperty(Content)} .
After the preservation, we could test this website: http://127.0.0.1/new_1234.html.
To see the page “1234″, pseudo-static is configured successfully.
Certainly, the above is only simple, according to actual situation. It also has the directory type, turns page type and so on.