Currently, major search engines such as Google, Baidu, and Yahoo have good support for dynamic pages such as ASP and PHP, as long as the parameters behind the dynamic page are not too long, for example, if the page content is controlled within three parameters and the page content is optimized, various search engines may not include such pages, even worse than static html pages. I have a website with ASP pages as the whole site, its indexing and ranking far exceed those of many static pages.
Of course, the structure of any website is good. If there is no content as support, users will not be able to stay. The development speed of search engines is no longer the level where dynamic pages are hardly indexed at the beginning. All major search engines are developing their own indexing technology, generally, dynamic pages can be easily incorporated into them.
Some websites require strong interaction and interaction with users, fast page refreshing, and many updated content. Such websites are not suitable for generating static pages, because the information on the website is time-sensitive, if you generate HTML static pages, then the search engine indexes your content pages and displays them to users, the information displayed by the user may be outdated and invalid, which is a bad experience for the user. Therefore, I suggest that dynamic pages of such websites do not generate HTML as much as possible, occupying a large amount of space and possibly causing a poor search experience for users.
Although we say that the indexing and ranking effects of dynamic pages and static html pages are not inferior, only you can control them well. However, static pages have some advantages. If your content is valid for a long time and will not be changed easily, I suggest you generate static page HTML.
This article only describes how to generate static pages using ASP. There are many methods to generate HTML using ASP.
1. Generate HTML using FSO and ADO. Many of these methods are used. For example, if the website is easy to use, the tag system generates static pages in addition to dynamic statistics. Of course, Baidu's ranking in Google is quite good.
2. Use components such as isapi_rewrite and rewrite. If the webmaster of the server is okay, friends of the VM will be in a little trouble unless they ask the service provider to install the plug-inProgramThe parameter is submitted to the server for conversion. It seems to be static. In fact, it is used to access the database content through static paths. It has a certain effect on Search Engine revenue, and many webmasters are struggling to find it.
3. This is the focus of this article. Pseudo-static ASP path. See the following detailed breakdown.
If You Want To Make ASP pages look static and not completely static, the goal is to make them more friendly to search engines. Please, as a hard webmaster, it cannot be too much. You can use this method. Such as show. asp? The path id = 1 can be converted to show /? 1. html, show. asp? Id = 1 & Id2 = 2 to show /? 1-2.html and so on.
Example: we need to put "http://www.piaoyi.org/show.asp? A = 3 & B = 8 "url format to" http://www.piaoyi.org/show? 3-8.html.
Method: Create the directory show and put a default homepage file under show, such as default. asp. Write the following in default. asp:Code:
<%
Dim ID, id1, Id2, a, B
Id = request. servervariables ("QUERY_STRING ")
Id1 = Replace (ID, ". html ","")
Id2 = Split (id1 ,"-")
A = Id2 (0)
B = Id2 (1)
Response. Write "a parameter value:" & A & "<br> B parameter value:" & B
''You have obtained the and B parameters required by the show. asp file.
''Use this parameter to open the database and obtain the content as before.
%>
The principle is simple. Request. servervariables ("QUERY_STRING") is used to obtain the received value (? After parameters), such as http://www.piaoyi.org/show? 3-8.html-received parameters 3-8.html-filtered. We only need to obtain parameters 3 and 8, and then retrieve data from the database based on 3 and 8, which is the same as dynamic ASP.