When Should I Use a Canonical vs. a 301 Redirect?

 Before we dive in, we need to understand the differences between a 301 and a canonical tag.

301 Redirects:

A 301 redirect is a way of permanently moving one URL to another.

From a user perspective, they type in one URL and magically get a different one.

No content is loaded on the original URL, it just redirects to the new place.

Most ways of doing this introduce a small delay in load times, but with CDNs and caching and modern technology, it really isn’t something we need to worry about.

There’s a ton of different ways to implement a 301 redirect.

If you’re on Apache you can do them in your .htaccess file.

It’s a bit different on Windows hosting.

You can even use a scripting language to do a redirect in code, although I would prefer to do it at the .htaccess level if possible.

The various ways to do redirects are beyond the scope of this article.

Canonical Tags:

The canonical tag has been around for a long time.

It’s coming up on its 12th birthday, but SEO pros still continue to struggle with using it and non-SEO pros still struggle with pronouncing it.

The main intent behind the canonical tag is to allow the webmaster to specify the preferred URL of a page that’s similar to another page.

Think of a “print version” of a page, or a sort feature on a page.

The canonical tag can be very useful in these situations. More on that later.

A canonical tag lives in the <head> section of the website.

The canonical tag is simple:

<link href="https://example.com" rel="canonical">

I’ve seen some websites put the canonical attribute inside meta tags or other tags.

I’m not sure if that works, or why you’d want to do that, so just do it like above.

Get a Low Cost Website to Click The Link

Comments

  1. CnX Player offers a fantastic Video Casting feature that gives an absolute freedom to all its users to cast ANY (literally ANY) video format and ANY video codec from PC to TV within a fraction of seconds!

    Features @ CnX Player

    * Stream ANY Video From PC To LG TV
    * Cast all videos from PC to KODAK TV
    * Stream any videos from PC to PHILIPS TV
    * Cast all videos from PC to SONY TV
    * Stream any videos from PC to TCL TV
    * Cast all videos from PC to TOSHIBA TV
    * Stream any videos from PC to MI TV
    * Cast all videos from PC to PANASONIC TV

    For more information visit our website at CnX Player

    ReplyDelete
  2. I'm  here to share my testimony of what a good trusted loan company did for me. My name is Nikita Tanya, from Russian and I’m a lovely mother of 3 kids I lost my funds on trying to get a loan it was so hard for me and my children, I went online to seek for a loan assistance  all hope was lost until one fateful day when I met this friend of mine who recently secured a loan from a very honest man Mr, Benjamin. She introduced me to this honest loan officer Mr, Benjamin  who helped me get a loan within 5 working days, I will forever be grateful to Mr Benjamin, for helping me get back on my feet again. You can contact Mr Benjamin via email: 247officedept@gmail.com    they do not know I’m doing this for them, but i just have to do it because a lot of people are out there who are in need of a loan assistance  please come to this honest man  and  you can be save as well .WhatsApp:(+1 989-394-3740)

    ReplyDelete
  3. Thanks for sharing this information. Today, Emblix as one of the best and top most service-oriented Digital Marketing Agency in Hyderabad and India , Which provides high-quality result-oriented Digital Services ranging from SEO to Web Design, Social Media Marketing and more, to a broad spectrum of clients from diverse industry segments. Through a well-oiled combination of Quality Solutions, Transparent Pricing, helping brands connect with customers, Flexible Delivery & Contract Model with a firm commitment to deliver on time and to budget, Emblix has successfully built a strong relationship with clients based on mutual trust and respect. Emblix solutions-digital marketing company

    ReplyDelete
  4. Very nice and hepful post. CnX Player is a fantastic Video Player and offer a Casting feature that gives an absolute freedom to all its users to cast ANY (literally ANY) video format and ANY video codec from PC to TV within a fraction of seconds!

    @CnXPlayer available on Windows 10, Android and iPhone/iPad

    * Download Media Player from Windows 10 - Microsoft App Store
    * Download Video Player from Android - Google Play
    * Download Movie Player from iPhone/iPad -Apple App Store

    For more information visit our website at Best Video Player

    ReplyDelete
  5. Thanks for the always useful information. This is great information to help peoples and nice article written by writer. CnX Player is a powerful & efficient 4K ultra HD enabled video player for Windows 10 PC & Tablet, Android and iOS – iPhone & iPad.

    Download Media Player for Windows 10 - Microsoft Store
    Download Video Player for Android from Google Play
    Download Video Player for iPhone/iPad from Apple App Store

    ReplyDelete

Post a Comment

Popular posts from this blog

What is JavaScript? Why is JavaScript is essential?

What is jQuery? Use of jQuery in Web Development

Importance of CSS in Web Design / Development