Using only an ID in the URL path provides little to no information about the content of the page to both users and search engines. Search engines rely on descriptive, keyword-rich URLs to understand the content of a page and its relevance to a search query. URLs that only contain an ID can be difficult for users to understand, as well as search engines to crawl and index. This can negatively impact the visibility and ranking of the page in search engine results, leading to lower traffic and reduced SEO. A better approach is to include a descriptive keyword-rich string in the URL path that accurately reflects the content of the page.
Including a descriptive keyword-rich string in the URL path can provide several benefits for SEO:
Overall, using just an ID in the URL path is a missed opportunity to provide valuable information to search engines and users. Including descriptive keywords can greatly enhance SEO and improve the visibility and ranking of the page.
Additionally, using just an ID in the URL path can result in duplicate content issues. If multiple pages have the same ID in their URLs but different content, search engines may have difficulty understanding which page to rank higher in search results. This can lead to diluted visibility and lower rankings for all the pages with the same ID in their URLs.
Having descriptive keywords in the URL path also helps with site organization and structure. It can make it easier for both search engines and users to navigate your website and understand the hierarchy of your content.
Furthermore, descriptive URLs are more likely to be shared and linked to by other websites, which can also improve SEO by increasing the page's authority and improving its chances of ranking higher in search results.
In summary, using only an ID in the URL path is a bad idea for SEO because it provides little information, decreases relevance and click-through rates, can lead to duplicate content issues, and hampers site organization and navigation.