Rules Hub
Coding Rules Library
Rule priority, scope & exceptions
Use this to align rules with the senior-level structure (P0/P1/P2, scope, exceptions/tradeoffs).
Use noindex (not canonical) to keep non-duplicate pages out of search
When the goal is to exclude a page from search rather than consolidate duplicates, use a noindex directive; canonical is only a hint and unreliable for non-equivalent pages.
Bad example
| 1 | <head> |
| 2 | <!-- App-only, chrome-less variant of the public page --> |
| 3 | <link rel="canonical" href="https://example.com/product/123" /> |
| 4 | </head> |
Explanation (EN)
canonical is a hint and is meant for consolidating true duplicates. For a view that is not equivalent to the canonical target, search engines may ignore it and index the variant anyway, exposing a broken landing page.
Objašnjenje (HR)
canonical je samo naputak i sluzi za objedinjavanje pravih duplikata. Za prikaz koji nije ekvivalentan ciljnoj stranici, trazilice ga mogu zanemariti i svejedno indeksirati varijantu, izlazuci neispravnu odredisnu stranicu.
Good example
| 1 | <head> |
| 2 | <!-- App-only, chrome-less variant of the public page --> |
| 3 | <meta name="robots" content="noindex" /> |
| 4 | </head> |
Explanation (EN)
noindex is a directive that reliably keeps the page out of search results, which is the actual goal for an app-only variant that should never be a search landing page.
Objašnjenje (HR)
noindex je direktiva koja pouzdano drzi stranicu izvan rezultata pretrazivanja, sto je stvarni cilj za varijantu samo za aplikaciju koja nikad ne bi trebala biti odredisna stranica iz pretrage.
Exceptions / Tradeoffs (EN)
When two pages really are equivalent duplicates and you want to consolidate ranking signals onto one URL, canonical is the correct tool; reach for noindex only when the intent is full exclusion.
Iznimke / Tradeoffi (HR)
Kad su dvije stranice stvarno ekvivalentni duplikati i zelite objediniti signale rangiranja na jedan URL, canonical je pravi alat; noindex koristite samo kad je namjera potpuno iskljucenje.