VPS全科网发现不少使用z-blog博客程序的博主,把外链跳转的形式更改为http://域名/url.asp?url=http://www.vpsqk.com,后来发现z-blog自带的主题模板的评论链接也是使用类似形式,据说如此的链接跳转有利于SEO,使用z-blog做淘宝客的朋友,首页太多外链不利于SEO,建议使用这个方法。下面是VPS全科网的设置方法。
z-blog外链跳转url.asp?url=形式设置方法:
新建一个url.asp文件,把下面的代码添加进入,保存后,上传到z-blog根目录
1 2 3 4 5 6
<%dim urldim baiyea_url baiyea_url=request("url")Response.Redirect baiyea_url%>
在浏览器输入http://你的域名/url.asp?=http://www.vpsqk.com,如果能跳转到VPS全科网就表示成功;(原理:这是段简单的asp代码,dim表示定义变量;Redirect表示把用户重定向到一个不同的URL。)
在z-blog的ADMIN\FCKeditor\editor\dialog目录下找到fck_link.html文件,并对其进行编辑,在其中找到以下代码:
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.vpsqk.com/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.vpsqk.com替换为自己的z-blog博客域名
添加以上代码是修改FCKeditor编辑器,主要是为了方便插入外链时使用https://www.vpsqk.com/url.asp?url=http://www.hadeasy.com这种形式
之后在编辑文章添加外链接,在“插入/编辑超链接以及上传附件”中的协议选择url.asp?url=http://
提示:使用z-blog博客且外链多的朋友,VPS全科网建议使用这种方法。
未经允许不得转载:搬瓦工VPS_美国VPS » ZBlog asp版本的外链跳转形式url.asp?url=http://