分享

写回答

发帖

[提问] 版主,网站重定向完了**.com就不能访问了吗?

GoDaddy GoDaddy 1187 人阅读 | 2 人回复

发表于 2011-3-8 13:43:04 | 显示全部楼层 |阅读模式

**.com全部转向到www上,设定完了,貌似**.com就不访问了。

正常吗?

回答|共 2 个

lwbo1987

发表于 2011-3-8 13:46:04 | 显示全部楼层

不如设置301转向,参看【总结】301转向代码合集
RAKSmart

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 编辑 ]
您需要登录后才可以回帖 登录 | 注册

本版积分规则