The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> canonical URL, trying to figure this out!
pixie.susan
post Apr 5 2024, 11:06 AM
Post #1





Group: Members
Posts: 6
Joined: 5-April 24
Member No.: 29,159



First, I want to say I'm mostly a beginner at making a website. I know I should have a responsive site, but right now, I don't. I'm working on my first one, but I want to do this in the meantime: Use a canonical tag to tell Google that I have identical desktop and mobile versions of a six-page website.

I've Googled this endlessly today, and I can't tell who knows what they are talking about because I have found the complete opposite information on different websites of what tag goes where (and the tags they are recommending look different, too).

Here is what I understand. I need to tell Google that one site is the main site and that I have duplicate pages for the mobile site What I can't figure out:

1) Which tags go on the main site, and which go on the mobile version?

2) What those tags should look like?

Right now, it's my understanding that this tag should go on the desktop/main version:

<link rel="canonical" href="https://mysite.com/index.html" />
<link rel="alternate" media="only screen and (max-width: 640px)" href="http://mysite.com/mobile.html">

But another site tells me I should have this on the main/desktop page:

<link rel="canonical" href="https://www.mysite.com/index.html" />
<Link rel="alternate" href="https: //m.example.com/mobile.html" />

And some say to put this on the mobile page:

<linkrel="canonical"href="https: www.mysite.com/index.html"></linkrel>

(different tags: <link rel= and <inkrel= does it make a difference?)

Can someone help me and let me know what goes where in simple language? I do understand that I need to do this on all 6 pages and I would of course change the URLs depending on the page name.

Many thanks for any help.

Susan




User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic
pixie.susan   canonical URL   Apr 5 2024, 11:06 AM
Christian J   First, I want to say I'm mostly a beginner at...   Apr 5 2024, 03:45 PM
pixie.susan   Thanks for your reply. The problem is if I just ha...   Apr 6 2024, 10:07 AM
Christian J   Thanks for your reply. The problem is if I just h...   Apr 6 2024, 11:32 AM
coothead   [indent] Sometimes that can be fixed simply by in...   Apr 6 2024, 01:55 PM
Christian J   [indent] Sometimes that can be fixed simply by i...   Apr 6 2024, 02:17 PM
coothead   [indent]Where, and why? [indent] [b]Where In al...   Apr 6 2024, 03:01 PM
Christian J   [quote name='Christian J' post='147090' date='Apr...   Apr 6 2024, 05:44 PM
coothead   [indent] I was hoping you already knew. [indent...   Apr 6 2024, 06:21 PM
Christian J   I want the desktop version to be the main version...   Apr 8 2024, 01:34 PM
pixie.susan   It's always something and not always a simple,...   Apr 8 2024, 03:42 PM
pixie.susan   Wow, I thought this would be a simple, easy answer...   Apr 7 2024, 10:16 AM
coothead   Hi there pixie.susan, You have not given us eithe...   Apr 7 2024, 02:29 PM
Christian J   Wow, I thought this would be a simple, easy answe...   Apr 7 2024, 04:33 PM
pixie.susan   12 to 8 were the answers I got from others, 12 for...   Apr 8 2024, 09:04 AM
Christian J   If you go to the desktop site with a smaller scre...   Apr 8 2024, 01:30 PM
coothead   Hi there pixie.susan, You may find this reworking...   Apr 8 2024, 07:28 PM
pixie.susan   I'll take a look but with Everweb (which I thi...   Apr 9 2024, 10:00 AM
coothead   Hi there pixie.susan, I had a spare moment or tw...   Apr 11 2024, 06:24 PM


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 18th May 2024 - 11:32 PM