hiding index.php from all url

so there is a guide and several wiki posting how to hide index.php. yes. that works.

but my need is how to hide the index.php generated by CHtml::link(), put it simply, how to prevent CHtml::link() genreate urls starting with index.php, I want to hide the index.php from all, forever, too ambitious???

any pointer would be appreciated.

sorry, I accidently solved this problem. just use the following code in the cofig.php instead of the code from definit guide