[eluser]Twisted1919[/eluser]
have a "url" field in the database, generated with url_title() based on the article title.
when retrieving the article, compare the id and also the url, if they match, show the article, if they don't, redirect();
Also, a better SEO approach is a article url like:
localhost.com/information/articles/3-article-name
and do a explode() on the 3rd uri segment to retrieve the article_id and the url, like:
Code:
$uri=$this->uri->segment(3);
list($id, $url)=explode('-',$uri,2);
Of course, do additional checks for the obtained variables.