Menu

A trailing slash on our site is a 308, a capital letter is a 404, and /. is the homepage answering 200
📰

A trailing slash on our site is a 308, a capital letter is a 404, and /. is the homepage answering 200

DEV Community: nextjs·Daniel Pertu·9 days ago
#2X3PYAU9
#devtonextjs#devto#dev#help#notifio
Long article (1204 words) — no AI summary yet.
Reading 0:00
15s threshold

The URL a reader asks for is not always the URL you published. It arrives with a UTM parameter stapled on, or with a trailing slash from a CMS, or capitalised because somebody typed it off a slide, or with a doubled slash because two bits of string concatenation both added one.

Notifio's site is 38 pages . I have audited what those 38 URLs are before. This time I asked for each of them three different wrong ways, recorded the status code, the redirect target, the <title> , the canonical and every robots meta, and then went after the odd shapes by hand.

The systematic part: 114 requests

For each of the 38 paths: add a trailing slash, upper-case the whole path, add ?utm_source=devto .

Shape Answer Count

/help/ 308 to /help 37 of 38

/HELP 404 37 of 38

/help?utm_source=devto 200, canonical points at /help 38 of 38

The 37s are 38 minus the homepage, where all three variants are the same request. Consistent, which is the boring answer I was hoping for.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.