这段时间试着用zblog弄个站,大家都知道zblog dedecms对度娘最友好,wordpress joomla drupal之类的对谷歌比较友好。因为我的英文水平有限,所以现在只能依靠度娘了。之前用了win2003的IIS弄网站,不够是美国的VPS,用3389还是好卡,于是搬到国内了。不过搬到国内的话就没有那些高级权限了。所以直接用asp的重定向了。

下面把zblog重定向的方法分享给大家,因为zblog的首页是default.asp,所以事先到空间上将default.asp下载到本地,用喜欢的文本编辑器打开,找到这段代码:

[cc lang=”asp” line_numbers=”true” highlight=”14,15,16,17,18,19″ width= “600”]
<% Option Explicit %>
<% On Error Resume Next %>
<% Response.Charset="UTF-8" %>
<% Response.Buffer=True %>








<% if request.ServerVariables(“SERVER_NAME”)=”wanghongliang.cn” then
Response.Status=”301 Moved Permanently”
Response.AddHeader “Location”, “http://www.wanghongliang.cn/”
Response.End
end if

If (InStr(LCase(Request.ServerVariables(“HTTP_ACCEPT”)),”text/vnd.wap.wml”) > 0) And (InStr(LCase(Request.ServerVariables(“HTTP_ACCEPT”)),”text/html”) = 0) Then Response.Redirect “wap.asp”

[/cc]

添加上面搞点的代码,把网址改成自己的就可以了!