I found that many ASP systems are calling ArticleIf static data is not generated, the output is similar.
Http://www.xxx.com/show.asp? Id = 26.
If you can change to http://www.xxx.com/show? 26 This format seems to have been removed a lot. Of course, for space that supports pseudo-static
It can also be set to http://www.xxx.com/show/26 said Yang can increase the probability of Search Engine indexed.
CodeAs follows:
First, create a show directory and create an index. asp file, which is the default file of the system.
Then, if it was show. asp? When id = 26, the show file first needs to get the ID
Id = request. querystring ("ID ")
And so on. Here we replace the obtained ID with, get? Use the following code to return the number.
Id = lcase (TRIM (request. servervariables ("QUERY_STRING ")))
Other database connection methods remain unchanged
Set rs = server. Createobject ("ADODB. recordset ")
Rs. Open "select * from blog where id =" & ID, Conn, 3,3
You can try it.
Here is a demo:
Http://www.aubaby.cn/shop? 26