Home  >  Article  >  Backend Development  >  The difference between pseudo-static, static and dynamic and various pseudo-static setting methods

The difference between pseudo-static, static and dynamic and various pseudo-static setting methods

PHPz
PHPzOriginal
2017-03-20 15:59:408492browse

The websites currently developed are actually dynamic websites in the true sense, but there are some differences in URLs. Generally, URLs are divided into static URLs, dynamic URLs, and pseudo-static URLs. What are their differences?

The difference between pseudo-static, static and dynamic and various pseudo-static setting methods

Static URL: The URL is similar to your domain name/news/2012-5-18/110.html We generally call it a true static URL. Each web page has a real physical path, which actually exists in the server.

The advantages are: the website opens quickly because it does not require calculations; in addition, the URL structure is friendly and easy to remember.

Disadvantages are: The biggest disadvantage is that if it is a medium or large website, there will be a lot of pages generated, which is difficult to manage. As for some netizens saying that the temporary hard disk space is large, I think this is negligible and does not take up much space. Besides, the hard disk space is currently relatively large. Some netizens said that it will damage the hard drive, but this can be ignored.

The impact of static websites on SEO: Static URLs definitely have a positive impact on SEO, because they open quickly, which is the essence.

Dynamic URL: The URL is similar to your domain name/NewsMore.asp?id=5 or to your domain name/DaiKuan.php?id=17, with? The URL of the URL is generally called a dynamic URL. Each URL is just a logical address and does not actually exist physically on the server hard disk.

The advantage is: It is suitable for medium and large websites. It is very convenient to modify the page. Because it is a logical address, it takes up less hard disk space than a pure static website.

Disadvantages: Because calculations are required, the opening speed is slightly slower, but this can be ignored. Currently, there is server caching technology that can solve the speed problem. The biggest disadvantage is that the URL structure is slightly complicated, which is not conducive to memory.

The impact of dynamic URLs on SEO: At present, Baidu SE can already understand dynamic URLs very well, so it has no negative impact on SEO (except for particularly complex URL structures). So it doesn’t really matter whether you choose dynamic or static, it depends on the CMS program you choose and your needs.

Pseudo-static URL: The URL is similar to php Chinese website //m.sbmmt.com/course/74.html This URL is similar to the true static URL. It uses pseudo-static rules to disguise dynamic URLs into static URLs. It is also a logical address, there is no physical address.

The advantage is: URL is friendly and easy to remember. It is very suitable for large and medium-sized websites and is a compromise solution.

The disadvantages are: It’s troublesome to set up, and the server must support rewriting rules. Don’t bother with small business websites or those who can’t play well. In addition, the access speed of the pseudo-static website has not become faster, because in fact it will perform additional calculations and interpretations. Anyway, it increases the burden on the server and the speed becomes slower. However, today's servers are very powerful, and this impact can be ignored. . It is also possible that both dynamic URLs and static URLs will be included by search engines, but you can use robots to disable dynamic addresses.

Impact on SEO: Like dynamic URLs, it has no negative impact on SEO.

The following are some related technical articles about pseudo-static settings:

  1. iis pseudo-static setting method under windows server

  2. Windows server 2008 server IIS7.5 URLRewrite pseudo-static settings

  3. apache pseudo-static .htaccess configuration rules

  4. Nginx pseudo-static configuration and collection of commonly used Rewrite pseudo-static rules

More pseudo-static configuration rules and related articles Please use php Chinese website to search within the site!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn