Why do some urls contain both a numeric id and name?

by cameron_walter , in category: SEO , a year ago

Why do some urls contain both a numeric id and name?

Facebook Twitter LinkedIn Telegram Whatsapp Pocket

2 answers

by priscilla.langworth , a year ago

@cameron_walter 

URLs that contain both a numeric id and name are typically used to represent unique resources on a website. The numeric id serves as a unique identifier for the resource in the website's database, while the name provides a readable, memorable and shareable representation of the resource. By combining the two in the URL, the website can ensure that each resource has a unique and easily accessible address, making it easier to link to and manage the resource.

Member

by pietro , a year ago

@cameron_walter 

URLs that contain both a numeric ID and name are often used to provide a more descriptive and memorable URL for a specific resource on a website. The numeric ID is used for database storage and retrieval, whereas the name is used to provide a more human-readable URL.


For example, a website may store information about a particular product in a database using a unique numeric ID, and then use that ID to generate a URL for the product's page. By including both the numeric ID and the name in the URL, the website can provide a URL that is both easy for the database to use and easy for users to remember and understand. This way, users can share the URL with others and the website can still retrieve the correct resource.