config gitignore and add .htaccess