如果是虚拟主机的话,新建一个文本,命名wieweb.config.
具体代码如下:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="WWW Redirect" stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{HTTP_HOST}" pattern="^VeVb.com[ DISCUZ_CODE_0 ]quot; />
</conditions>
<action type="Redirect" url="http://www.VeVb.com/{R:0}" redirectType="Permanent" />
</rule>
</rules>
</rewrite>
<security>
<authentication>
<anonymousAuthentication userName="" />
</authentication>
</security>
</system.webServer>
</configuration>
最后上传到服务器根目录下就可以了.记得自行修改符号圆半角.