tar include hidden files such as .htaccess just add . to the path eg. tar -czvf tarfile.tar.gz /home/directory/.