inemaSEO 1 — Foundation: the X-ray and the groundwork of your site|INEMA.CLUB-PRO

Lesson 4 · 13 min

One canonical only: www or non-www

To you, yoursite.com and www.yoursite.com are the same site. To a search engine, they can be two. When the canonical, the sitemap, and the links disagree, Google picks on its own which address to keep, and sometimes it picks the wrong one. This lesson closes that door.

Start the lesson
Two blank street signs in front of a house; a man on a ladder is working on one of them.

In this lesson you will

  1. 1What a canonical is and why it decides which URL counts
  2. 2Redirect the variations to a single one
  3. 3Check the 4 places where the address appears
  4. 4The real case of the non-www canonical

Goal: choose www or non-www and make canonical, sitemap, JSON-LD, and links use the same address.

01From the address you type to the address that counts

Tap each block.

Click each block in the diagram to see what it does.

It doesn't matter whether you use www or not. What matters is making one choice and using it everywhere.

02Fix the address

Tap each step.

1. Choose

See which version Search Console already shows most, and which one outside links use. Stick with that one.

Changing later is costly: choose once and write it down.

03Check from the terminal

The same commands the X-ray uses, one at a time.

Terminal · where each variation goes
for u in http://www.seusite.com/ https://seusite.com/ https://www.seusite.com/; do
  echo "$u -> $(curl -4 -m 20 -s -o /dev/null -w '%{http_code} %{redirect_url}' "$u")"
done
Terminal · the canonical of a page
curl -4 -m 20 -s https://www.seusite.com/pagina/ | grep -oE 'rel="canonical" href="[^"]*"'
Table of the 4 places (template)
Chosen version: <https://www.seusite.com>
| place | page checked | address found | same? |
|---|---|---|---|
| canonical | </pagina/> | <...> | yes/no |
| sitemap | <sitemap.xml> | <...> | yes/no |
| JSON-LD (@id/url) | <home> | <...> | yes/no |
| menu links | <home> | <...> | yes/no |
Example from the repository

Redirects for www.inema.club in the 10/19/2026 X-ray:

http://www.inema.club/ -> 308 https://www.inema.club/
https://inema.club/ -> 308 https://www.inema.club/
https://www.inema.club/ -> 200

Both variations redirect permanently to the www version, which answers 200.

04Practice: one address only

Use the raio-x.txt from lesson 2 as your starting point.

E1 · The three variations

15 min

Run the curl loop (or the X-ray again) and see where each variation of the address goes.

Done when: all three variations end at the same address, with a 200 at the end; if not, the fix request was made to your hosting.

E2 · The four places

25 min

Fill in the table of the 4 places for the home page and for one inner page.

Done when: the table is complete and every row says "yes," or every "no" has its fix noted.

05Test what you learned

The explanation appears after you answer.

Question 1 of 4

What is the right choice: with www or without www?skill

06Takeaways

One versionWith or without www, either is fine; two, never.
Four placescanonical, sitemap, JSON-LD, and links, all the same.
GeneratorGenerated HTML is fixed at the source, not in the published file.

Going further

Previous lessonNext lesson