In addition, as the content on the Internet grows at an astonishing rate, the importance of search engines is becoming increasingly prominent. If a website wants to be better indexed by search engines, the website design is not only user-friendly, the design of Search Engine Friendly is also very important. The more content you enter the search engine page, the more likely you will find using different keywords. In the Google algorithm survey article, we mentioned that the number of pages indexed by Google by a site has a certain impact on PageRank. Because Google highlights the relatively static parts of the entire network (the number of dynamic web page indexes is relatively small ), static websites with relatively fixed link addresses are more suitable for Google indexing (no wonder that many large websites can search for mailing list archives and documents archived by date on blogs ), therefore, many articles on URL design optimization for search engines (URI Pretty) mentioned that dynamic web page parameters are converted into static web pages using certain mechanisms:
For example, you can set:
Http://phpunixman.sourceforge.net/index.php? Mode = man & parameter = ls
To:
Http://phpunixman.sourceforge.net/index.php/man/ls
There are two main implementation methods:
Based on url rewrite
Download iis isapi rewrite (free of charge)
Based on path_info
Use the URI address as a parameter to pass: the simplest way to url rewrite is to convert the URL based on URL rewriting in various WEB servers to the (Rewrite) module:
In this way, the program implementation will be almost unchanged? The link id = 234 is mapped to news/234.html, and looks like a static link from the outside. The Apache server has a module (non-default): mod_rewrite: powerful enough to write a book.
When I need? When id = 234 is mapped to news/234.html, you only need to set:
RewriteRule/news/(d00000000.html/news. asp? Id = $1 [N, I]
In this way, requests such as/news/234.html are mapped to/news. asp? Id = 234
When there is a request for/news/234.html: the web server will forward the actual request to/news. asp? Id = 234
In IIS, there are also corresponding REWRITE modules, such as isapi rewrite and iis rewrite. The syntax is based on regular expressions, so the configuration is almost the same as that of apache mod_rewrite: for a simple application:
RewriteRule/news/(d00000000.html/news. php? Id = $1 [N, I]
So we map the http://www.chedong.com/news/234.html to the http://www.chedong.com/news/news.php? Id = 234 a more common expression that can map parameters of all dynamic pages is:
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.