[eluser]Otemu[/eluser]
Hi,
I am checking two url segments for id and page title e.g /news/4/NM-Star-Shinning-so-brightly
if a result is found in the database then the page is returned, if not then it directs them to codeigniter default 404 page.
Problem is the actual index page /news, orginally I was just checking if uri_string() was equal to /news then display the news index. However I noticed its possible a user could be using possible 4 different urls to get to the page:
/news
/news/
/home
/home/news/
I doubt that checking all 4 different urls is the best method for this, what has escaped me?
Thanks for the help