Backend Blog
1) URL & Canonical Strategy (back-end source of truth) 1.1 Normalize every incoming URL (gateway/middleware) Force HTTPS, preferred host (e.g., www vs root), and trailing-slash policy (pick one). Lowercase slugs (unless case matters) and strip tracking params (utm_*, fbclid). If the normalized URL differs → 301 to the normalized form. 1.2 Canonical selection algorithm (service) For each resource (post/page/taxonomy): Use the primary slug from DB. Prepend the preferred […]