博客吧发现不少使用z-blog博客程序的博主,把外链跳转的形式更改为http://域名/url.asp?url=http://www.boke8.net,后来发现z-blog自带的主题模板的评论链接也是使用类似形式,据说如此的链接跳转有利于SEO,使用z-blog做淘宝客的朋友,首页太多外链不利于SEO,建议使用这个方法。下面是博客吧搜索到的设置方法。
z-blog外链跳转url.asp?url=形式设置方法:
1 2 3 4 5 6 | <% dim url dim baiyea_url baiyea_url=request("url") Response.Redirect baiyea_url %> |
在浏览器输入http://你的域名/url.asp?=http://www.boke8.net,如果能跳转到博客吧就表示成功;(原理:这是段简单的asp代码,dim表示定义变量;Redirect表示把用户重定向到一个不同的URL。)
1 2 3 4 5 6 7 | <select id="cmbLinkProtocol"> <option value="http://" selected="selected">http://</option> <option value="https://">https://</option> <option value="ftp://">ftp://</option> <option value="news://">news://</option> <option value="" fckLang="DlgLnkProtoOther"><other></option> </select> |
将其替换为以下代码
1 2 3 4 5 6 7 8 | <select id="cmbLinkProtocol"> <option value="https://www.boke8.net/url.asp?url=http://"selected="selected">url.asp?url=http://</option> <option value="http://" selected="selected">http://</option> <option value="https://">https://</option> <option value="ftp://">ftp://</option> <option value="news://">news://</option> <option value="" fckLang="DlgLnkProtoOther"><other></option> </select> |
PS::把www.boke8.net替换为自己的z-blog博客域名
提示:使用z-blog博客且外链多的朋友,建议使用这种方法。
参考文章:z-blog官方论坛