Sebab tu Google ada kasi alogrtima rel="nofollow". Ertinya setiap kali Google berjalan-jalan di laman anda dan tiba-tiba ia terjumpa URL lain. Ia tak akan terjah ke laman tu kalau ia diletakkan "nofollow"
Untuk membuat external link sebagai nofollow kita terpaksa buat satu persatu tetapi kini ada script yang memberi kemudahan untuk no follow semua external link.
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js' type='text/javascript'></script>
<script type='text/javascript'>
var a = $(this);
var href = a.attr('href');
$(document).ready(function() {
$("a[href^='http://']").each(function () {
if(this.href.indexOf(location.hostname) == -1) {
$(this).attr('target', '_blank');
$(this).attr('title', 'Click to open in a new window');
$(this).attr('rel', 'nofollow');
}
}
);
$("a[href^='https://']").each(function () {
if(this.href.indexOf(location.hostname) == -1) {
$(this).attr('target', '_blank');
$(this).attr('title', 'Click to open in a new window');
$(this).attr('rel', 'nofollow');
}
}
);
});
</script>
Bagaimana Nak Masukkan:
a) Pergi ke Blogger Dashboard- template
b) Cari <head> tag
c) Masukkan script di atas sebelum <head>
d) Save
Sumber: Blogger BuZZ
1 Ulasan