Old domain to new domain – different accounts

We can use the following code, and paste them in .htacess file:

Options +FollowSymlinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^old-domain.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.old-domain.com$
RewriteRule (.*)$ http://www.new-domain.com/$1 [R=301,L]

for example, we want www.glassespeople.com/medicalcenter123.com/ jump to http://www.medicalcenter123.com/,
we can use the following code:

RewriteEngine On

RewriteCond %{HTTP_HOST} ^glassespeople.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.glassespeople.com$
RewriteRule (.*)$ http://www.medicalcenter123.com/$1 [R=301,L]

King Php Science Welcome, you are from: 54.162.125.164