Codeigniter .htaccess redirection for query string URL

Recently EduSagar was upgraded to accommodate MVC framework provided by Codeigniter. This was done in an effort to get more meaningful and SEO-friendly segmented URLs. Things worked pretty well, but then we faced a weird issue.