有何好的方案解决静态、伪静态的优先级有关问题

WBOY
Release: 2016-06-13 11:29:02
Original
1054 people have browsed it

有何好的方案解决静态、伪静态的优先级问题?
有何好的方案解决静态、伪静态的优先级问题?

系统: Linux Apache  PHP/5.2.17

现在服务器上用.htaccess重写地址做伪静态,用了缓存。但是还是经常超出空间商的cpu limit,最近已经两次被空间商强制停机了。

现在想把大部分的页面改成纯静态,只有分页还保留伪静态。
现在希望能够在“纯静态html”页面存在的情况下直接链接到“纯静态html”页面,“纯静态html”页面不存在的情况下就用伪静态。

但是,我们知道在有伪静态规则的规范下是无法访问到“纯静态”页面的,始终会被链接到相应的php页执行。

查询 百度,看到有说用不同后缀来区分纯静态和伪静态,如:.htm  .html

这样是可以达到目的,但是要修改很多模板里的.html,很麻烦,在这里想请问大神们有没有更好的解决方案。

望大神们不吝赐教啊!

拜谢了!

静态 伪静态 优先级
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!