Just as an update if anyone finds this in the future, I've manged to fix it.
1. Added "AcceptPathInfo on" to htaccess file
2. Add cgi.fix_pathinfo = 0 in php.ini file
It works!!!