您好,山东省E销宝总代理欢迎您的光临! 关于我们 在线留言

24小时服务热线

13255311026 

E销宝分析伪静态与静态的区别在于什么?

2021/01/08 来源:http://www.jnexb.com
伪静态是相对真实静态来讲的,真实静态会生成一个html或htm后缀的文件,访客能够访问到真实存在的静态页面,而伪静态则没有生成实体静态页面文件,而仅仅是以.html一类的静态页面形式,但其实是用PHP程序动态脚本来处理的,这就是伪静态。
Pseudo static is relative to real static, real static will generate a HTML or HTM suffix file, visitors can access the real static page, and pseudo static does not generate entity static page file, but only in the form of. HTML static page, but in fact it is processed by PHP program dynamic script, this is pseudo static.
静态页面的优缺点:
Advantages and disadvantages of static pages:
真实静态通常是为了更好的缓解服务器压力,和增强搜索引擎的友好面,所以都将网页内容生成静态页面。
Real static is usually to better ease the pressure of the server, and enhance the friendly side of the search engine, so the web content will be generated into static pages.
但大缺陷是每次在网站后台修改网页内容都需要重新生成静态页面,无法实时显示更新的内容,而久之网站内容多了,占用的空间大小以及每次生成静态页面所耗费的服务器资源也不容小觑(有出现内容过多且一次性生成静态页面而导致服务器奔溃的案例)。
But the big drawback is that every time you modify the content of the web page in the background of the website, you need to regenerate the static page, and you can't display the updated content in real time. For a long time, the website has too much content, the space occupied and the server resources consumed by each generation of the static page can't be underestimated (there are cases where the server crashes due to too much content and one-time generation of the static page).
伪静态有什么作用?
What is the function of pseudo static?
有的朋友为了实时的显示一些信息,或者还想运用动态脚本解决一些问题,不能用静态的方式来展示网站内容,但是这就损失了对搜索引擎的友好面,怎么样在两者之间找个中间方法呢?这就产生了伪静态技术。
Some friends in order to display some information in real time, or also want to use dynamic script to solve some problems, can't use the static way to display the content of the website, but this has lost the friendly side of the search engine, how to find a middle way between the two? This leads to pseudo static technology.
伪静态有什么不足?
What are the disadvantages of pseudo static?
由于伪静态是用正则判断需要跳转到的页面而不是真实页面地址,分辨到底显示哪个页面的责任也由直接指定转由服务器CPU来判断了,所以CPU占有量的上升,确实是伪静态的弊端。
Because pseudo static uses regular rules to judge the page to jump to, rather than the real page address, the responsibility of distinguishing which page to display is also directly assigned to the server CPU, so the increase of CPU occupancy is indeed a drawback of pseudo static.

截屏,微信识别二维码

微信号:18615220710

点击微信号复制,添加好友

 打开微信