Subdomain wildcard htaccess redirection to new domain
问题 One of my websites I want to redirect o another domain. The situation: [old] *.example.com [new] *.example.net for now I have this in my htaccess #RewriteCond %{HTTP_HOST} ^(.*).allwebsitestats.com [NC] #RewriteRule ^(.*)$ http://$1.allwebsitestats.nl [R=301,L] The result of this; Request [old] *.example.com results in [new] .example.net, the problem is it doesn't get the wildcard subdomain with it. Thanks you! Regards, Nick 回答1: Enable mod_rewrite and .htaccess through httpd.conf and then