Redirect an old domain to a new domain
You had an old area, for example, xpertphp.com and now you choose you really need to utilize example.net for the site. If you want to change old domain such as xpertphp.com. name to new domain such as xpertphp.in it is a possible through htaccess.
Follow below example of how to Redirect an old domain to a new domain using htaccess.
1 2 3 4 | RewriteEngine on RewriteCond %{HTTP_HOST} ^xpertphp.com [NC,OR] RewriteCond %{HTTP_HOST} ^www.xpertphp.com [NC] RewriteRule ^(.*)$ http://xpertphp.in/$1 [L,R=301,NC] |
Please follow and like us: