Cara Memasang Canonical URL Untuk Blogspot & WordPress

 

Canonical URL – Kita akan belajar cara memasang Canonical URL Pada Blogspot dan WordPress. Dengan memasang canonical url, maka artikel anda tidak akan tersingkir dari hasil pencarian Google karena blog anda sudah terdaftar/memiliki kode spesifik yang menjadi milik anda. Jika terjadi kopi paste oleh orang lain, blog anda akan tetap dianggap sebagai yang orisinil dan menjadi versi alamat web resmi dan benar. Canonical url akan menghindari pembelokan atau pembiasan.

Cara Memasang canonical url pada blogspot:

~ Di dashbord blogger,pilih Template, pilih edit html

~ Lanjut dengan cari kode  <head>

~ Kopi paste kode dibawah ini bawah kode diatas

<link expr:href=’data:blog.url’ rel=’canonical’/>

~ Simpan template.

Cara Memasang Rel Canonical Url di WordPress:

~ Masuk ke dashboard anda.

~ Masuk ke Appearance, pilih editor, pilih header.php

~ Sekarang cari kode  </head>  dan <?php wp_head(); ?>
Secara umum, sebelum kode </head>  akan terdapat kode seperti ini: <?php wp_head(); ?>

~ Sekarang copy paste kode dibawah ini sebelum kode </head>  atau kode  <?php wp_head(); ?>.

Kodenya adalah sbb:

<?php if(is_home() || is_single() || is_page()) : ?>

<link rel=”canonical” href=”<?php the_permalink() ?>”>

<?php endif; ?>

~ Setelah anda pasang akan menjadi seperti berikut ini

<?php if(is_home() || is_single() || is_page()) : ?>

<link rel=”canonical” href=”<?php the_permalink() ?>”>

<?php endif; ?>

<?php wp_head(); ?>

</head>
~ Selanjutnya pilih Simpan atau update file.

Untuk mengecek apakah canonical Anda sudah berhasil terpasang dengan benar pada situs web Anda, kunjungi homepage atau salah satu url halaman, kemudian ketik ctrl+U dari keyboard untuk melihat sumber lamannya. Atau Anda juga dapat memeriksanya dengan menggunakan Tool pemeriksa seperti SEO quake yang bisa Anda dapatkan di extensi browser Chrome, Firefox dan windows.

Selamat mencoba semoga berhasil.

 

15 Comments

  1. If you want to see the conical Urls of the Site you can visit the Lyallpur Organics

  2. Thank you for the posting.
    Implement a contactless delivery system in your organization and continue your services amid the global crisis. Know how to implement it

  3. Best Buy Hacks experts share the best products that you should buy. We’re a team of savings professionals delivering the best deals, tips and tricks to help you save at your favorite brands, stores and restaurants.

  4. Unlike our forefathers, today’s generation is enthralled by adventurous, healthful adventures. They aren’t interested in putting their lives in danger for the purpose of entertainment or addiction. This single factor explains why Vape Dubai has become more popular than smoking in recent years. You can go a long way with good health. Quitting smoking allows you to live a longer life. However, quitting smoking is difficult for someone who is a chain smoker unless they can find a healthy replacement. It was the beginning of vaping. The Vape Dubai way of life promotes healthy e-cigarettes as an alternative to traditional cigarettes. Here is a list of a few of the many benefits

  5. Thank you for the posting.
    Implement a contactless delivery system in your organization and continue your services amid the global crisis. Know how to implement it

  6. Disney Plus is one of the best-known streaming services in the world. You can browse a full collection of Disney classics, as well as your latest favorite Disney movies. Disneyplus.com/begin Code which is an additional subset of Hotstar is an image of Hotstar. Disney Hotstar offers a wide selection of movies, TV series and news in addition to sports. Also, it is famous for its video streaming software.

  7. Connect Disney Plus to your device at Disney Plus is one of the most popular streaming services in the world. You can find a full list of Disney classics as well as your favorite new Disney movies. Disneyplus.com/begin Code, which is also a subset of Hotstar, is an example of Hotstar. Disney Hotstar offers a variety of TV shows, movies, and news, as well as sports.

  8. Base Oil, base oil price, base oil price in india, what is base oil, base oil specification, base oil manufacturers in india, base oil uses, base oil prices, base oil specifications

    Base oils are used in the manufacture of lubricating oils, motor oil, and metal processing fluids. Different products have different oil properties and compositions. The liquid’s viscosity at different temperatures is one of the most important aspects. The concentration of base oils molecules and their extraction ease will determine whether a crude oil can be converted to base oil.

  9. Cosmopolitan The Daily is a business publication providing coverage of Finance, Technology, Energy, Real Estate, etc. on the key market trends from around the globe. https://cosmopolitantdaily.com/

  10. Thanks for sharing this amazing and informative post. keep sharing with us.
    motorcycle genuine fashion leather vest mens

  11. I think that your blog is very informative content. I like how you cover a lot of different topics, and I find it easy to navigate. You always provide quality information, and I appreciate the way you present it. I think your blog would be helpful for anyone who wants to learn more about the subjects that you discuss.

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.