隐藏index.php

浏览:1536 发布日期:2013/06/04 分类:求助交流 关键字: 隐藏index.php URL模式
在IIS7中隐藏index.php,web.config配置如下:<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>
使用U方法:U("show/1");为什么还出现index.php
URL模式已设置为2。
请高手指点!!
最佳答案
评论( 相关
后面还有条评论,点击查看>>