A-A+

Emlog IIS7.5伪静态

2017年09月23日 个人笔记, 拾到贝壳, 点滴记录 Emlog IIS7.5伪静态已关闭评论 阅读 2,691 次浏览 次

Emlog IIS7.5伪静态

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="OrgPage" stopProcessing="true">
<match url="^(.*)$" />
<conditions logicalGrouping="MatchAll">
<add input="{HTTP_HOST}" pattern="^(.*)$" />
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="index.php/{R:1}" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>

复制这段代码,保存 web.config 上传到网站根目录(亲测可用!前提环境支持web.config)

评论已关闭!

Copyright © 海边拾贝 保留所有权利.   Theme  Ality 鲁ICP备17020531号-1
网站已运行: | 耗时 0.495 秒 | 查询 53 次 | 内存 29.90 MB

用户登录