多语言展示
当前在线:548今日阅读:103今日分享:49

wordpress IIS 伪静态 设置说明

wordpress IIS 伪静态 设置说明,大致分几种,1利用wordpress插件(cos-html-cache),2 404 3 ISAPI_Rewrite3_full
工具/原料
1

下载cos-html-cache

2

下载WordPress URL Rewrite组件

方法/步骤
1

先说利用cos-html-cache 这东西好处在于直接生成了HTML文件,跟URL Rewrite组件 区别就在于这,但是他也需要 URL Rewrite组件支持,所以不建议用。他的实用方法满大街都是,不做说明。

3

ISAPI_Rewrite3_full 组件  我个人推荐用这个方法。安装就不做说明了,但是特别提示,一定要在安装后的目录里给IIS权限 NETWORK SERVCE 特别提示.htaccess 文件页要给NETWORK SERVCE 权限,否则运行不了。 有人说在WIN 下要设置httpd.ini文件,我自己实验过,这文件设置后也给了权限,根本不起作用,我把他导出为.htaccess 后才一切正常,代码如下:# Helicon ISAPI_Rewrite configuration file# Version 3.1.0.73RewriteEngine OnRewriteCompatibility2 OnRepeatLimit 32RewriteBase # unsupported directive: [ISAPI_Rewrite]#  3600 = 1 hour# unsupported directive: CacheClockRate 3600#  Protect httpd.ini and httpd.parse.errors files#  from accessing through HTTP#  Rules to ensure that normal content gets throughRewriteRule ^/software-files/(.*)$ /software-files/$1 [L]RewriteRule ^/images/(.*)$ /images/$1 [L]RewriteRule ^/sitemap.xml$ /sitemap.xml [L]RewriteRule ^/favicon.ico$ /favicon.ico [L]#  For file-based wordpress content (i.e. theme), admin, etc.RewriteRule ^/wp-(.*)$ /wp-$1 [L]#  For normal wordpress content, via index.phpRewriteRule ^/$ /index.php [L]RewriteRule ^/(.*)$ /index.php/$1 [L]如果在网页里中文是乱码的话,要找到指定乱码文件,用记事本打开后另保为原文件,在选择编码的时候选你相对应的编码如:

4

总结下,如果你的WIN下运行后打不开,或找不到,基本都是权限没设置好。以上提供的本人百分百测试没问题。第一次写这东西,也没做错别字检查。

推荐信息