Upgrade URL for SEO from mysite.com/dbtable_id/ to mysite.com/dbtable_id/article-title
- by John
I have an existing journal website with the following url structure
http://mysite.com/dbtable_id/
(eg. http://mysite.com/89348/)
where 89348 is the primary key id of the journal article.
I want to add the title of the article to the url for SEO purposes like
http://mysite.com/dbtable_id/article-title
(eg. http://mysite.com/89348/hello-world)
I like this approach because I don't need to change the PHP code since it will still look up the article by dbtable_id. All I have to do is append url friendly titles to relevant links in template files and add one more rule to a .htaccess file.
Is there anything I should be concerned about? Am I following best practices? Will the possibility for mismatch between "dbtable_id" and "article-title" affect SEO?