Subdomain wildcard htaccess redirection to new domain
snippet in htaccess

Subdomain wildcard htaccess redirection to new domain

user6592

Options +FollowSymLinks -MultiViews
# Turn mod_rewrite on
RewriteEngine On
RewriteBase /

RewriteCond %{HTTP_HOST} ^(.+?)\.allwebsitestats\.com$ [NC]
RewriteRule ^ http://%1.allwebsitestats.nl%{REQUEST_URI} [R=301,L]