Windows 主机 PHP程序 URL重写 web.config 配置
|
|
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 编辑
绝对喜欢,好帖子不多哦,顶一下 |
|
|
|
|
|
|
|
|