However, there exists a redirect that search engines respect, espically google. This redirect is known as a 301 redirect. A 301 Redirect says the the link has permanently moved. There are many neat things you can do with a 301 redirect. They are
Link any page/subpage from a site to any page of another site
Link any page/subpage from a site to its corresponding page on a new site
Transfer Google Page Rank you gain from backlinks
All this can be done with Apache's .htaccess file and here's what your .htaccess file needs to look like:
Code: Select all
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.domainname01\.com$ [NC]
RewriteRule ^(.*)$ http://domainname2.com/$1 [R=301,L]
Code: Select all
RewriteEngine On
RewriteCond %{HTTP_HOST} ^domainname01\.com$ [NC]
RewriteRule ^(.*)$ http://www.domainname2.com/$1 [R=301,L]