I'm a server-side developer dabbling in SEO practices for the first time. This question is about getting the url structure right for a web application I'm developing, goal being having some which is search-engine friendly (especially Google).
Background:
The web application I'm developing contains user generated "topics" in which said users can submit bite-sized text/image posts associated to the topic. It's kind of a cross between Reddit and Twitter.
Question:
Imagine a topic for the popular movie Avengers: Foogame on my site. Following are the candidates I have for a URL pointing to this topic (where 1
is topic ID to ensure the URI is unique):
example.com/topic/1/avengers-foogame/
example.com/avengers-foogame/topic/1/
example.com/avengers-foogame-1/
example.com/avengers-foogame/1/
Notice all variations include a topic ID, which is irrelevant from a search perspective. Will it adversely affect the search-engine friendliness of the URLs in question, or can it stay? Moreover, which of the above variations would be the most desirable from an SEO perspective? Or are they all suboptimal?
I would really appreciate getting guidance from industry experts regarding how to tackle this.
To me, it looks like the third option is the best candidate out of the lot. Why? Because I've consistently read that URI tokens (words) are weighted in order of writing, and 3 seems to take advantage of that the most.
I understand that URL structure is but a small drop in the vast ocean of SEO, but I do want to get it right in any case.
Note: this is not a dup of another question regarding url structures and IDs, since that deals with something else entirely.