Windows下IIS配置伪静态的方法

升级到Emlog 3.4.0 咯,新推出的伪静态功能备受关注啊

很多Emers 发帖说自己后台设置了静态后出现不能访问的现象

呃~~···那是Win主机服务器的问题啦,我们来学学怎么设置Win主机服务器使之支持。

解决方法是Emer “金字塔¢月”提供

Windows下IIS配置伪静态的方法【支持3.3.0和3.4.0】

步骤一
 
下载附件(下载连接在文章末尾)
如果是虚拟空间(下面的步骤可忽略),直接联系空间商客服由空间技术人员操作。
可以提供给它这个附件,如果他需要重写规则:
 
规则代码
[ISAPI_Rewrite]

# 3600 = 1 hour
CacheClockRate 3600

RepeatLimit 32

RewriteRule ^(.*)/(post|record|sort|author|page)/([0-9]+)$ $1/index.php\?$2=$3
RewriteRule ^(.*)/tag/(.+)$ $1/index.php\?tag=$2

RewriteRule ^(.*)/(post|record|sort|author|page)-([0-9]+)\.html$ $1/index.php\?$2=$3
RewriteRule ^(.*)/tag-(.+)\.html$ $1/index.php\?tag=$2

如果是自己的服务器,请继续往下看。
解压到任意盘符下或目录下。


步骤二
给目录分配权限
操作:选择目录,右键 > 属性 > 安全 > 添加 IIS_WPG,并给予相应权限


步骤三
打开IIS,选择你的站点。
操作:右键 > 属性 > ISPAI筛选器 > 添加,找到刚才的放置的地方,选择 Rewrite.dll ,名称随意填写 > 最后确定


步骤四
最后重启IIS,然后到emlog后台打开伪静态,一般情况下就可以了。



附件下载:
cxl_rewrite.zip 99.74KB

Post a Comment

Your email is never published nor shared. Required fields are marked *

*

*

Type your comment out:


Back to Top
Sitemap