Htaccess redirect to new domain
Htaccess redirect to new domain
This is best way to redirect from one doamain to new domain page wise(ie. it will redirect the page from old domain to new domain on the same page.). This is the Seo friendly way also.
Add the following code to the .htaccess file.
RewriteEngine on RewriteRule ^(.*)$ http://newdomain.com/$1 [R=301,L]
Advertisements