Problem with UrlMenager and Search form

I have problem with url manager and serach form. I have this form on my main layout:

<div class=" searchBar">

                    <?php echo CHtml::beginForm(array('/item/search'), 'get'); ?>

                    <?php echo CHtml::textField('string', $_GET['string'], array('size'=>60));?>

                    <?php echo CHtml::submitButton('szukaj',array('name'=>'form'));?>

                    <?php echo CHtml::endForm();?>


And this rule in UrlManager:

'<form>-<string>'=>array('item/search', 'urlSuffix'=>'.html', 'caseSensitive'=>false),

When I use search form i url like this

when I enter url like this

It works just fine, but I can’t make it to generate this kind of url :(.

The former URL is created by the browser when you use GET to submit a form. If you don’t want that, you could either use POST for your form or attach some javascript to the submit event of the form, that creates the URL in the desired format and redirects the browser to that location.