Changed "getFileExtension" function again because ".htaccess" is a file and NOT (!) an extension.