
How to Check PHP Version on Windows 11 and in XAMPP
Step lists to check your PHP version on Windows 11 and XAMPP, fix the not recognized error, and see how it relates to the PHP on your live host.
Small business
A canonical tag is one line of code that tells search engines which address is the main one for a page. SEO guides explain the syntax well. What most site owners actually want to know is simpler: does my site need one, does my platform already add it, and what do the canonical messages in Search Console mean? This guide answers those from Google's own documentation and the platforms' help pages, read on 20 November 2026, with a check we ran on our own site.
line in the page's head, pointing to the URL you want shown in search.A canonical tag tells search engines: "this page also exists at other addresses, but this is the one to index." You need one, in effect, on every page, pointing to itself, plus on any duplicate address pointing to the main version. The good news is that most website platforms already do this. Your job is to check three things: that each page's canonical points to the right address (https, the right www setting, no tracking codes), that your internal links and sitemap use the same addresses, and that old or duplicate addresses that should not exist are redirected instead.
About us: Amariq is a studio that designs and builds websites. The rules below come from Google Search Central's page on specifying a canonical URL and Search Console's Page indexing help, both read on 20 November 2026.
We searched Google (US, English) for "canonical tag" on 20 November 2026. The results were Google's developer documentation, Moz's learning center page (4 April 2025), Ahrefs' blog (31 October 2024), Webflow's help article (19 May 2026), Search Console Help, LinkedIn and Reddit discussions, and many short videos.
The SEO tool pages explain the syntax and the theory thoroughly. What none of them puts in one place is the owner's view: whether you need to do anything at all, what your platform already does, and how to read the canonical statuses in Search Console. One also repeats a common worry: Webflow's article says duplicate content "can cause SEO penalties", while Google's own canonical page says specifying a canonical is not required and that Google will pick the best URL itself. This guide fills that gap.
The tag sits in the of the page:
``html ``
Google's rules for it, from its documentation:
/services/roof-repair. Google supports relative paths but does not recommend them.Most duplicates are not copied pages. They are the same page reached in different ways:
| Cause | Example |
|---|---|
| With and without www | example.com/about and www.example.com/about |
| http and https | http://www.example.com/about |
| Tracking codes | /about?utm_source=newsletter or ?gclid=... from ads |
| Filters and sorting | /collections/shoes?sort_by=price-ascending |
| File endings or trailing slashes | /about.html, /about/ and /about |
| The same product in several collections | a product reached through two category paths |
| Printer or mobile versions | older sites with separate m. addresses |
Google lists the reasons to name a canonical: to choose which URL people see in search, to "consolidate signals" such as links from other sites into one URL, to simplify your analytics, and to avoid search engines spending crawl time on duplicates.
Google is direct about this: none of the canonical methods are required, and "your site will likely do just fine without specifying a canonical preference", because Google will identify the best version on its own.
So the honest answer for most small business sites is:
| Tool | What it does | Use it when |
|---|---|---|
| Canonical tag | Both addresses still load; search engines are asked to index one | Duplicates must stay reachable: filters, tracking codes, a page shown in two places |
| 301 redirect | Visitors and search engines are sent to the new address | The old address should not exist any more: a moved page, www vs non-www, http to https |
| No-index | The page is kept out of search entirely | Pages that should never appear in search, such as a thank-you page |
Google ranks the signals: redirects are "a strong signal" that the target should become canonical, rel="canonical" is "a strong signal", and listing a URL in a sitemap is "a weak signal". They stack, so using them together helps. Google does not recommend using no-index to choose between duplicates on one site, and warns against using robots.txt for canonicalization. Our 301 redirect guide covers redirects in detail, and our robots.txt guide covers what that file can and cannot do.
| Platform | What it sets for you | What to check |
|---|---|---|
| Shopify | Its help center says "auto-generated canonical tags are added to pages to prevent duplicate content" | Nothing for most stores; check custom theme code if a developer changed the head. Our Shopify SEO guide lists what else is automatic |
| Webflow | Once you set Site settings > SEO > Global canonical tag URL, every page gets a canonical made from that base URL plus its slug | That the global URL is set, uses https, includes www if your domain does, and has no trailing slash; static pages can override it in Page settings |
| WordPress | Core outputs a canonical tag for single posts and pages (the rel_canonical function, added in version 2.9) | Archive and category pages are not covered by that function; SEO plugins usually add those. Make sure only one plugin outputs the tag |
Webflow's help adds a warning worth repeating: if you also inject a canonical through another tool, such as Google Tag Manager, you get two canonical tags, "which search engines may ignore entirely". For other platforms, Google's advice is to look for a search settings page in your CMS rather than editing the code.
On 20 November 2026 we requested one of our own blog posts at five different addresses and looked at the response and the canonical tag each time:
| Address requested | Response | Canonical in the page |
|---|---|---|
| https://www.amariq.com/blogs/301-redirect | 200 (loads) | https://www.amariq.com/blogs/301-redirect |
| The same with ?utm_source=test added | 200 (loads) | https://www.amariq.com/blogs/301-redirect |
| The same ending in .html | 308 redirect to the clean address | https://www.amariq.com/blogs/301-redirect |
| https://amariq.com/... (no www) | 301 redirect to www | https://www.amariq.com/blogs/301-redirect |
| http://www.amariq.com/... | 301 redirect to https | https://www.amariq.com/blogs/301-redirect |
This is the pattern to aim for: addresses that should not exist redirect, the one that must stay reachable (with a tracking code) loads but names the clean address as canonical, and every version agrees on one URL. Our sitemap and internal links use the same address.
You can run the same check without code. Open a page, add ?test=1 to the address, and view the page source (in most browsers, right-click and choose View Page Source). Search for "canonical". It should show the clean address, not the one with ?test=1. Then try the address without www (or with it) and with http, and see where you land.
In Search Console's Page indexing report, several statuses mention canonicals. Google's help page explains them:
| Status | What Google says it means | What to do |
|---|---|---|
| Alternate page with proper canonical tag | The page is an alternate of another page and "correctly points to the canonical page, which is indexed", so Google asks for no action | Nothing, if the canonical it points to is the page you want indexed |
| Duplicate without user-selected canonical | The page is a duplicate, gives no preferred canonical, and Google chose another page as canonical | Usually fine; add a canonical if Google chose the wrong one |
| Duplicate, Google chose different canonical than user | Your page names itself as canonical, but Google thinks another URL is a better canonical | Inspect the URL, compare the user-declared and Google-selected canonicals, and check that your redirects, links and sitemap all agree |
A long list under "Alternate page with proper canonical tag" is common on stores and sites with tracking codes and is not a problem in itself. Our guide to why your website is not showing on Google covers the other indexing statuses.
Every site we build or move gets its canonical tags, redirects and sitemap set together, and check them on the live site after launch, the same way we checked our own above. Projects are priced from scope, never by the hour, and paid 40% to start, 30% at design approval and 30% before launch. Once the final payment is made, the design, copy and code belong to you, and the domain, hosting and analytics accounts sit in your name. If you are moving platforms, see our website redesign SEO checklist, or book a call.
A line in a page's code that tells search engines which address is the main one for that page, so they index and rank that address instead of its duplicates.
Google does not require it, but a self-referencing canonical on every page is good practice and most platforms add one automatically. What matters is that it points to the right address.
No. A redirect sends visitors and search engines to another address. A canonical tag leaves both addresses working and asks search engines to index one of them. Google treats redirects as the stronger signal.
Google's canonical documentation says you do not have to specify a canonical at all, because Google will choose the best version itself. Duplicates mainly split signals and waste crawl time, which canonical tags and redirects help with.
Google's Search Console help says the page points correctly to its canonical, and that canonical is indexed. No action is needed unless the canonical it names is the wrong page.
View the page source and search for "canonical", or use the URL Inspection tool in Search Console, which shows both the canonical you declared and the one Google selected.
Yes. It is a strong hint, not a command. If your redirects, links, sitemap and content point elsewhere, Google may choose a different canonical.

Step lists to check your PHP version on Windows 11 and XAMPP, fix the not recognized error, and see how it relates to the PHP on your live host.

Which schema markup a business site needs in 2026, why FAQ markup stopped earning a rich result in May, and a LocalBusiness example. Checked 13 Nov 2026.

A website sitemap can mean a planning diagram, an XML file or an HTML page. Which one you need, how to plan yours and what Google says. Checked 12 Nov 2026.