Adding post ID to avoid URL crashing?

36 Views Asked by At

I am creating a website, now it's time to decide how the URL for different posts should look like.

For SEO purposes, I am planing to add the post URL, like

example.com/post.php?v=a-very-interesting-title

To prevent URL crashing, I was thinking to add the post ID to the URL, like

example.com/post.php?v=a-very-interesting-title-32

What do you think about adding the post ID to the URL, any security concerns? Should I hash the ID before adding to the URL? How should I do that?

0

There are 0 best solutions below