w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
subdomain redirection to main site url

You can use this code in your .htaccess file of subdomain's DocumentRoot:

RewriteEngine On

RewriteCond %{HTTP_HOST} !=test.abc.com [NC]
RewriteRule ^ http://test.abc.com%{REQUEST_URI} [NE,R=301,L]




© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.