Creating a manual search with GET for posts

I created the manual search and everything is working fine, my queries are well listed.

I tried to clean my URL, as when I search for an item my URL goes


www.example.com/food.html?query=xxxx

This URL pattern is somehow affecting my SEO and I want it more managed and search engine friendly.

Hence I tried to clean my URL via adding some code in"config/main.php"

My code is:


'<category:\w+>/<query:\w+> => 'tag/search',

I find no difference and I am in middle of nowhere,can anyone please help me out !!!

I would appreciate it a lot.