来自动态页面和数据库的静态页面? [英] Static pages from dynamic pages and database?

查看:67
本文介绍了来自动态页面和数据库的静态页面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

设计网站结构的方法是什么,我的意思是静态网页和动态网页之间的关系?假设我有一个名为view_product.php的页面,我用它来访问数据库并显示某个产品的信息,我用它来查看所有产品。这是正确的吗?因为我理解搜索引擎不喜欢这个。我在大多数网站上看到,当你按照说法访问特定帖子时,它通常是一个静态页面,这对我来说很有意义,否则我不知道搜索引擎会如何找到它。我读了一些我想尝试的东西,那就是从动态生成页面缓存静态页面。您是否对该主题有任何见解?

What is the propper way of designing a web site structure, and by this I mean, the relationship between static web pages and dynamic web pages? Say I have a page called view_product.php that I use to access the database and display the information of a certain product, and I use it to view ALL products. Is this right? Because I understand search engines don''t like this. I''ve seen on most web sites that when you access a specific post per say, it usually is a static page, and that makes sense to me, otherwise I don''t know how the search engines would find it. I read something that I want to try, and that is caching static pages from the dynamically generate page. Do you have any insight on the subject?

推荐答案

更好的解决方案始终是创建动态页面的缓存版本。如果您正在使用wordpress,那么可以使用WP super-cache等几个插件来完成这项工作。
Better solution is always create cached version of dynamic pages. If you are using wordpress there are several plugins like WP super-cache to do the job.


这篇关于来自动态页面和数据库的静态页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆