把网站设置成伪静态可以说是大多数seo们常用的,设置不是说设置就设置的,而要看你网站的主机支不支持,大多数主机还是支持的,伪静态减轻服务器的运行。
.htaccess设置伪静态有很多方法,在这里我只说说我所用到的.htaccess方法,我用的是虚拟主机,只需在.htaccess里面添加上你的伪静态规则,再上传服务器就可以了。
asp伪静态规则:
# Helicon ISAPI_Rewrite configuration file
# Version 3.1.0.73
RewriteEngine On
RewriteCompatibility2 On
RepeatLimit 32
RewriteBase
# unsupported directive:[ISAPI_Rewrite]
# 3600 = 1 hour
# unsupported directive: CacheClockRate 3600
# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP
RewriteRule ^.*\.isrwhlp$ / [NC,F,O]
RewriteRule ^/index\.asp$ /index.html
RewriteRule ^/news_([0-9,a-z]*).html$ /news.asp\?id=$1
RewriteRule ^/chanpin_([0-9,a-z]*).html$ /chanpin.asp\?id=$1
RewriteRule ^/qiye_[\u4e00-\u9fa5]{0,}.html$ /qiye.asp\?lb=$1
RewriteRule ^/chanpinlb_[_[\u4e00-\u9fa5]{0,}.html$ /chanpinlb.asp\?lb=$1
[\u4e00-\u9fa5]{0,}是中文,伪静态中中文是比较少用的,有的数得看虚拟主机是否支持,目前我是用了中文伪静态,中文也可以转化编码使用。