Remove index.php from end of url in case of COURSE-type url