Code to redirect subdomain to root domain
-
This post is deleted! -
Are you on an apache server? If so, you need to add the proper regex expression to your htaccess file.
I am not a htaccess expert. This code may not work and could cause interruption to your site. If you take this suggestion be sure to back up your .htaccess file and be prepared to switch files back immediately if it does not work.
With the above understood, you can try adding the below code to your htaccess file:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^products.indiabizone.com$
RewriteRule (.*) http://www.indiabizone.com/$1 [R=301,L] -
This post is deleted! -
You are most welcome. Please let me know if it works.
-
This post is deleted!