Why Do Some Websites Use Both Slugs and IDs in Their URLs?

0
8
Asked By CuriousTraveler42 On

I've been exploring some tracking websites and noticed a pattern in their URL structure. For instance, URLs like `https://anilist.co/manga/53390/Attack-on-Titan/` and `https://myanimelist.net/anime/16498/Shingeki_no_Kyojin` feature both an immutable ID and a mutable slug. I'm curious why they do this. Typically, I thought resource routes should remain constant. If the title (slug) changes, wouldn't that affect SEO and break existing links or bookmarks? I've searched for answers but haven't found a satisfactory explanation.

3 Answers

Answered By JustAnObserver On

At the end of the day, it's all about making URLs user-friendly. But I do find that it doesn’t add much value when you still see numbers in the URL.

Answered By WebWhizKid On

As long as there's a canonical meta tag linking back to the original URL, changing the title won’t hurt SEO. In the past, it was believed that having readable text in URLs benefited SEO, but that’s not really the case anymore. People just cling to the idea that it's somehow better for readability.

SEOMasterX -

Google changed how they score URLs back in May 2007. Before that, having the URL match the query was advantageous, but now it doesn’t really matter as much.

HumanReadableFan -

Exactly! It's really just more for the convenience of sharing links.

Answered By TechieNerd77 On

The slug part of the URL is mainly for readability and can be safely ignored by the server. This way, URLs become easier for people to understand without affecting functionality.

LinkLover99 -

Yeah, and the slug can be changed anytime without causing an issue.

SEO_Wizard88 -

But let's be real, it’s really all about SEO at the end of the day.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.