4 URLs lead to the same page content, are 301 redirects better or setting rel canonical better?

4 URLs lead to the same page content, are 301 redirects better or setting rel canonical better? - If a page has internal and external outgoing links to redirecting URLs, it’s returning 3xx (301, 302, etc.) HTTP status codes standing for redirection. This issue means that the page does not exist on a permanent or temporary basis. It appears on most of the popular web browsers, usually caused by a misconfigured website. However, there are some steps you can take to ensure the issue isn’t on your side. You can find more details about redirecting URLs by reading the Google Search Central overview. In this article, we’ll go over how you can fix the 4 URLs lead to the same page content, are 301 redirects better or setting rel canonical better? error on your web browser. Problem :


All the following pages have the same exact content:




  1. http://www.example.com/seo-url (rel canonical URL)

  2. http://www.example.com/ID1234

  3. http://www.example.com/content/ID1234

  4. http://www.example.com/ID001234



Currently we have set rel canonical to http://www.example.com/seo-url on all the links.



This means that if you open URLs 2-4, they will open with whichever URL you use. While the content is the same the URLs are different.



Is it better to apply 301 redirects to URLs 2-4 so that they all lead to the same location (URL 1) and open the same page content only on URL 1.



I have a feeling that 301s would be beneficial to our rankings.


Solution :

It depends on the search engines you are trying to index in.



If you are looking for the greatest compatibility with all search engines (so that they can index your site), then you're better off to use 301 redirects.



If you're looking for speed and you only want your site indexed in google (and whatever other search engine that fully supports <link rel="canonical" href="original-url">), then declare the duplicate pages as canonicals since there is no need to load at least twice the number of pages (the redirect page, possibly additional redirect pages and lastly, the content page).



A 301 redirect is preferable to a canonical declaration.


This has different reasons, e.g.:



  • Not all consumers support the canonical link type (which is relatively new), but most should support 301 HTTP redirects (which is a relatively old standard).

  • The canonical link type is intended for bots, so most human visitors won’t learn which URL you prefer. With HTTP redirects, all users automatically end up on the same URL, so all use the same URL to link to your document.

  • With HTTP redirects, URL-based caches are more effective.


This is also what RFC 6596: The Canonical Link Relation recommends:



Before adding the canonical link relation, verification of the following is RECOMMENDED:



  1. […]



  2. For HTTP, permanent HTTP redirects (Section 10.3.2 of [RFC2616]), the traditional strong indicator that a IRI's content has been permanently moved, could not be implemented in place of the canonical link relation.



  3. […]





We hope that this article has helped you resolve the seo, redirects, web-crawlers error in your web browsers. Enjoy browsing the internet uninterrupted!

Comments

Popular posts from this blog

How to redirect to any domain [duplicate]

"302 found" for index page bad for SEO?

Create redirect from url like www.example.us/?p=100&option=