I am in the process of turning my urls seo friendly.
My urls for my blog currently look like:
http://domain.com/news/view-article.php?id=23+category=qrops+title=moving-your-pension-abroad---what-are-the-benefits? How can I ensure characters like @ ? >< don't appear in my url?
How can I avoid duplicate --- ?
Code to generate the url is as follows:
<a class="small magenta awesome" title="View full article" href="view-article.php?id='.$row['id'].'+category='.strtolower($row['category']).'+title='.strtolower(str_replace(" ","-",$row['title'])).'">View full article »</a> Pretty sure I am doing something wrong but I'm trying...
Help appreciated..
I will move on to using the mod_rewrite in apache afterwards