Clean Seo Friendly Url

Hi all! After I have read this blog http://www.joshuawinn.com/yii-clean-seo-friendly-urls-for-pages/ and configured my application with url manager:




'category/<slug:[a-z0-9\-]+>'=>'site/category'



But The link like http://localhost/app/site/category?slug=category-3dfg@@@# is correct, I want when I click this link, my website is show error.

sorry my bad english.

/* Moved to General Discussion */