找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 141|回复: 0

[cms教程] pbootcms百度编辑器UEDITOR给网页链接默认设置加上rel="nofollow"标识

[复制链接]

该用户从未签到

发表于 2022-2-13 09:56:18 | 显示全部楼层 |阅读模式

您需要 登录 才可以下载或查看,没有账号?立即注册

×
伴随着越来越多网站站长逐渐高度重视seo了,对rel="nofollow"也在意的多了。但由于百度编辑器ueditor并不由自主带rel="nofollow"作用,在引进别的网站URL连接的情况下,就会造成蛛蛛外流,自已的百度权重降低。

今日AB免费模板整理了一下,来简单地怎么弄,让ueditor的link自带rel="nofollow"标识,啥也不说了,直接用图。

1、寻找/core/extend/ueditor/dialogs/link/link.html,改动第81行。



                               
登录/注册后可看大图




'href' : href,
'target' : $G("target").checked ? "_blank" : '_self',
'title' : $G("title").value.replace(/^\s |\s $/g, '')]
'_href':href

改动成:



'href' : href,
'target' : $G("target").checked ? "_blank" : '_self',
'title' : $G("title").value.replace(/^\s |\s $/g, '')]
'rel': 'nofollow',
'_href':href


2、寻找/core/extend/ueditor/ueditor.config.js,改动第370行。



                               
登录/注册后可看大图




a:      ['target', 'href', 'title', 'class', 'style','name','id',,
abbr:   ['title', 'class', 'style',,
abbr:   ['title', 'class', 'style',,
area:   ['shape', 'coords', 'href', 'alt',,


改动成:



a:      ['target', 'href', 'title', 'class', 'style','name','rel','id',,
abbr:   ['title', 'class', 'style',,
abbr:   ['title', 'class', 'style',,
area:   ['shape', 'coords', 'href', 'alt',,


以上2个文件修改好就能实现rel="nofollow"了,网站后台管理检测加上连接,检测取得成功,演试图如下所示。



                               
登录/注册后可看大图
回复

使用道具 举报

网站地图|页面地图|文字地图|Archiver|手机版|小黑屋|找资源 |网站地图

GMT+8, 2024-5-16 11:07

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表