raksmart活动促销

分享

写回答

发帖

Windows 主机 PHP程序 URL重写 web.config 配置

回答|共 16 个

20111208sbd

发表于 2012-5-28 17:28:28 | 显示全部楼层

那个代码网上应该是有的,可以去搜一下哦
回复 支持 反对

使用道具 举报

intotf

发表于 2012-6-5 22:36:31 | 显示全部楼层

本空间使用的是:arvixe   --------   PersonalClass ASP PRo  (windows主机)


感谢大家的回复!问题我已经解现贴出   web.config   内容

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <directoryBrowse enabled="false" />
        <defaultDocument>
            <files>
                <clear />
                <add value="index.php" />
                <add value="default.php" />
                <add value="default.html" />
                <add value="index.html" />
            </files>
        </defaultDocument>
                <rewrite>
                        <rules>
                                <rule name="index.php" >
                                  <match url="^(.*)$" ignoreCase="true" />
                                        <conditions>
                                          <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>
回复 支持 反对

使用道具 举报

lido2010

发表于 2012-9-14 11:56:50 | 显示全部楼层

楼主,可以发完整吗?
回复 支持 反对

使用道具 举报

芬章广桓

发表于 2012-7-28 15:57:34 | 显示全部楼层

本帖最后由 bbidc2012 于 2012-7-31 05:29 PM 编辑

绝对喜欢,好帖子不多哦,顶一下
RAKSmart
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则