To make star character in bash to match hidden files, use dotglob option:
$ shopt -s dotglob
If directory contains both normal and hidden (.*) files, here what you will get without and with dotglob set:
$ ls *
file1.txt file2.txt
$ shopt -s dotglob
$ ls *
file1.txt file2.txt .htaccess .htpassword