2008Server R2 IIS7.5 隐藏index.php

浏览:2331 发布日期:2014/04/08 分类:求助交流 关键字: 2008Server R2 IIS7.5 隐藏index.php
最近在2008Server R2上弄了个小项目
最后阶段了要进行伪静态设置 遇到个问题
按官方http://document.thinkphp.cn/manual_3_2.html#url_rewrite
在IIS的高版本下面可以配置web.Config,在中间添加rewrite节点:    <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>
发现除了主页其它页都没有了CSS和JS

在网上看了些资料 大致是说CSS和JS路径也被处理了 要配置例外
查了半天资料也没找到如何配置例外 特来坛里求教!
最佳答案
评论( 相关
后面还有条评论,点击查看>>