[提问]
版主,网站重定向完了**.com就不能访问了吗?
|
|
**.com全部转向到www上,设定完了,貌似**.com就不访问了。
正常吗? |
|
|
|
|
|
|
|
|
|
|
lwbo1987
发表于 2011-3-8 13:46:04
|
显示全部楼层
|
|
|
|
|
|
|
|
|
|
szlc
发表于 2011-3-8 14:04:02
|
显示全部楼层
不带WWW的就定向到WWW上去了,301代码没用,总是500错误,你看看我的ASP主机的设置方法
新建web.config
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="WWW Redirect" stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{HTTP_HOST}" pattern="^banzheng0531.com$" />
</conditions>
<action type="Redirect" url="http://www.banzheng0531.com/{R:0}"
redirectType="Permanent" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
[ 本帖最后由 szlc 于 2011-3-8 02:05 PM 编辑 ] |
|
|
|
|
|
|
|
|