网站的伪静态怎么办?
我经常说伪静态路径更有利于站点优化,怎么办? 让我给你看看伪静态的技巧。
1、什么是伪静态
使动态路径看起来像静态技术。
2、为什么要伪静态
缓解服务器压力、提高搜索引擎易用性、路径标准化、记忆传递方便、
3、如何模拟静态
服务器类型:
WINDOWS服务器
IIS配置很容易应用于ASP程序站点。
rewrite [ ri’ra ]? t]
IIS要求配置对Rewrite.dll组件的支持
另外,也有必要通过上传httpd.ini来进行静态化
LINUX服务器
Apache服务器(bldwn )。
Apache免费、稳定、可扩展性、安全开放
Apache的特点是简单、速度快、性能稳定,
Apache适用于Linux,windows与IIS兼容且稳定,IIS易于使用,所以我喜欢IIS
Apache与IIS的比较
Apache可与单眼php组合使用。 Apache是免费的高性能WEB服务器,但他一般不支持asp。 通过支持html php jsp等脚本。
is是微软的互联网web服务,支持微软的ASP asp.net CGI等。 也可以与其他PHP Tomcat等组合使用,支持php JSP等。 它具有配置操作简单、易于管理的优点,但缺点是安全性比Apache稍差
Discuz的伪静态
WordPress的伪静态
官方还提供了以下自定义参数:
%year%年
%monthnum%月
%y%日期
%hour%小时
%minute%
%second%秒
%postname%文章名称
发表文章时,文章的简称“This Is A Great Post! 框中,选择“默认值”。 那么,“this-is-a-great-post”是url的文件名。
%post_ID%文章的id
/%ctegory%目录
%author%作者
网上常见的几种设置方法:
/% year %/% monthnum %/y %/% post name % /
•/%year%/%monthnum%/%postname%/
/% year %/% monthnum %/% y %/% post name %.html
/% year %/% monthnum %/% post name %.html
•/%ctegory%/%postname%.html
•/%post_id%.html
使用了很多以下4个静态规则!
/%ctegory%/%postname%.html
/%ctegory%/%post_id%.html
/%postname%.html
/%post_id%.html
例如,建设博客使用伪静态规则代码