[提问]
ixwebhosting win主机设置web.config问题!
|
|
请教,我的ix win主机已经设置过了web.config但不起作用。
主要是用来301,404的。
同样的写法用在gd上没有问题。求解!
(莫非ix win主机低于iis7.0?)
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="sh-pearlhotel">
<match url=".*" />
<conditions>
<add input="{HTTP_HOST}" pattern="^webszen.com$" />
</conditions>
<action type="Redirect" url="http://www.webszen.com/" redirectType="Permanent" />
</rule>
</rules>
</rewrite>
</system.webServer>
<system.web>
<customErrors mode="On" defaultRedirect="/Error.html">
<error statusCode="404" Redirect="/error.asp"/>
</customErrors>
<globalization requestEncoding="utf-8" responseEncoding="utf-8" fileEncoding="utf-8" />
</system.web>
</configuration>
顺便问一下:
<action type="Redirect" url="http://www.webszen.com/" redirectType="Permanent" />
<action type="Redirect" url="http://www.webszen.com/{R:0}" redirectType="Permanent" />
上面的这两个写法为什么红色的在gd里不起效果。而没加 {R:0} 的反而可以。求解。至于这个代表什么我也不知道。有知道的给个详解。谢谢喔。 |
|
|
|
|
|
|
|
|
|
|
lwbo1987
发表于 2011-10-16 16:58:35
|
显示全部楼层
|
|
|
|
|
|
|
|
|
|
vipoks
发表于 2011-10-16 17:06:21
|
显示全部楼层
不好意思。因为之前在这里发了一贴。现在直接在里面点了新贴。所以就这样了。。版主帮忙移一下。里面也有个GD的问题。 |
|
|
|
|
|
|
|
|
|
|
微微百科
发表于 2011-10-17 09:40:36
|
显示全部楼层
|
咨询了一下IX的客户,他们说他们的Windows主机所使用的IIS版本是IIS6.0 |
|
|
|
|
|
|
|
|
|
|
vipoks
发表于 2011-10-28 20:16:08
|
显示全部楼层
|
|
|
|
|
|
|
|
|
|
微微百科
发表于 2011-10-29 09:07:05
|
显示全部楼层
不客气!!!  |
|
|
|
|
|
|
|
|