# COnvert links in content to clean urls

**URL:** <https://forum.kirupa.com/t/convert-links-in-content-to-clean-urls/303837>\
**Category:** programming\
**Created:** [January 27, 2010, 9:29pm UTC](https://forum.kirupa.com/t/convert-links-in-content-to-clean-urls/303837 "2010-01-27T21:29:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mentha](https://avatars.discourse-cdn.com/v4/letter/m/a3d4f5/32.png) [@mentha](https://forum.kirupa.com/u/mentha)\
**Post date:** [January 27, 2010, 9:29pm UTC](https://forum.kirupa.com/t/convert-links-in-content-to-clean-urls/303837/1 "2010-01-27T21:29:15Z")

</div>

I’m working on (finally!) learning the whole mod\_rewrite stuff, but there’s 1 thing I’ve run into and I can’t get my head around the solution.  
If I have content, of a menu for that matter, containing ‘dirty’ urls (eg. index.php?cat=2&item=1), what’s the best/easiest/fastest way to convert them to clean urls (eg. [www.domain.com/category/item](http://www.domain.com/category/item)) WITHIN the content? I don’t really feel like rewriting my entire code…  
I know it can be done, Joomla does it for example. Haven’t found the actual script yet though…

Thanks guys!
