I want address of my website user is mydomain.com/username/. But it seems very difficult to me using codeIgniter.Please help me what is best way to do it. 

mysite.com/profile?user=username 
is current url of profile but i want this
 mysite.com/username

please help me and I'm not good english speaker so I'm sorry if you not understand my question.