order allow,deny deny from all # Redirect www to non-www RewriteCond %{HTTP_HOST} ^www\.(.*) RewriteRule (.*) http://%1/$1 [R=301,L]