Canonical vs 301 redirect

User 2765857 Photo


Registered User
614 posts

Hello all,
Not a designer so this has me confused :rolleyes: a few questions:
#1. Have the site now with HTTPS ( not uploaded yet still tweaking) BUT reading about using or not using Rel="canaonical" in Header or use only 301 Redirect. If Canaonical is it added on ALL pages? and if I do have 301's in my .htaccess file do I need Canaonical also?

#2. Adding text below since I do have Rewrite On all I do add the 2 other lines below l what I have?
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) Error! Hyperlink reference not valid.} [R=301,L]

I have also RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} \.htm$
RewriteRule ^(.*) %{REQUEST_URI}l [R=301,L] Do I keep it ?????

Ray
NOTE: Anyone here from Wayan from Bali???

Ray aka Kreations
Since 1994 Chocolate bar wrappers for all occasions.
Since 1972 helping clients help "Discover Their Dream Vacation"
User 122279 Photo


Senior Advisor
14,454 posts
Online Now

With Redirect you can make a page open another page instead. The other page has to be existent, either on the same site or on another site.

With Canonical it is possible to have a page open as if it is located at another url. Some people e.g. want to omit the .html and make a page like domain./com/about.html open as just domain.com/about. Another use is to make domain.com/about display as www.domain.com/about, regardless whether a user types the www. or not.

This doesn't answer all your questions, someone else may have to chime in there. Don't know about Bali, but on our news we see that a volcano is smoking a lot.
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 2765857 Photo


Registered User
614 posts

Thanks Inger I appreciate your help! All 301's do go to pages that are good. The Canonical had me confused but I guess really do not need it.
I will wait to see if anyone else can chine in for the other question that has me wondering about.

Last I heard about Bali they were wanting at least 100 thousand to evacuate area in tourist area sounds like it may really blow but who knows. Don't see Wayan on forum so just wondering.
Ray
Ray aka Kreations
Since 1994 Chocolate bar wrappers for all occasions.
Since 1972 helping clients help "Discover Their Dream Vacation"
User 187934 Photo


Senior Advisor
20,190 posts

301's are for this page dosen't exist any more so search engines index this one.
Canonical's are for I have other pages with this same content. Please index only this one.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2765857 Photo


Registered User
614 posts

Eric Rohloff wrote:
301's are for this page dosen't exist any more so search engines index this one.
Canonical's are for I have other pages with this same content. Please index only this one.

Thanks Eric- Ok ALL of my 301's than are ok as in http they all work. In https I am changing all internal links to https and doing preview ALL are https. Since Search Engines consider http and https as seperate sites and they really are duplicate than I should ALSO add the Canonical on each page in the header?
My #2 question in regard to adding extra info under ReWrite on has me confused also.
Ray
Ray aka Kreations
Since 1994 Chocolate bar wrappers for all occasions.
Since 1972 helping clients help "Discover Their Dream Vacation"

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.