南强小屋 Design By 杰米
在网站根目录下加入:
Web.Config:
<"1.0" encoding=”UTF-8″?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="cnUrl" stopProcessing="true">
<match url="!^(index\.php|images|assets|robots\.txt)" />
<action type="Rewrite" url="cnurl.php" />
</rule>
<rule name="Default" patternSyntax="Wildcard">
<match url="*" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="index.php" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
cnurl.php:
<"index.php");
支持IIS环境下跑各种开源PHP项目,如:Wordpress、Emlog、Typecho等。
标签:
IIS,PHP,重写,设置
南强小屋 Design By 杰米
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
南强小屋 Design By 杰米
暂无IIS环境下PHP rewrite重写设置(支持中文参数)的评论...