Nginx location ^~ /.git { return 404; } Apache 2.2 <Directory "/home/data/www/htdocs/made/.git"> Order Deny,Allow Deny from all </Directory> Apache2.4 <Directory "/var/www/html"> # #...
server { server_name 88885345.com; rewrite ^/(.*) http://www.88885345.com/$1 permanent; }