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