Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

rel="canonical v 301 redirect

Featured Replies

Would I be completely out of line if I asked the following question:

 

If I have managed to correctly set up a 301 redirect to avoid the whole duplicate pages issue (.index.html being seen as a separate page from the root url), do I need a rel="canonical tag as well? If so, does the set up include simply adding the link - <link rel="canonical" href=http://www.example.com/> to the <head> section of the index page only in this case?. Or is the 301 redirect enough for seo purposes?

 

Please advise. Thank you in advance.

  • 1 month later...
  • 2 weeks later...
  • 2 months later...

Setting your preferred domain tells Google which version of your site's URL you prefer. Specify the canonical link for each version of the page.

  • 2 weeks later...

Canonical is a value written in ‘rel’ field of the link tag. If search engines come across a webpage with canonical tag in it, they understand that it is the duplicate version.A URL is provided in the link tag which points to original version of the content.

A 301 redirect is a permanent redirection of one URL to another.

 

Rel=”canonical” – This element is added to the head of the page, and suggests to the search engine, “ignore this ugly URL, and instead only look at this pretty URL.” It looks like this: <link rel=”canonical” href=”www.example.com" />

Edited by Lyndsey
removed spam link

  • 2 weeks later...

For Multiple Versions of the Homepage - I recommend 301 redirect

This is another common mistake. Potentially a homepage URL could be access through the following means, depending on how it has been built -


http://abc.com

http://abc.com/home.html

http://www.abc.com/index.html

If the homepage can be accessed via these type of URLs, they should 301 to the correct URL which in this case would be www.abc.com.



The exception would be if these multiple versions of the homepage served a unique purpose, such as being shown to users
who are logged in or have cookies dropped. In this case, you'd be better to use rel=canonical instead of a 301.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.