There are different ideas to organize the redirection urls from one domain to another. But one of better and secure way is using .htaccess.
You simply add following code into the .htaccess
RewriteEngine On
RewriteCond %{HTTP_HOST} ^domain.com$ [OR]
RewriteCond %{HTTP_HOST} ^domain.com$
RewriteRule (.*)$ http://domain.org/$1 [R=301,L]
Another pretty easiest way is single line code Redirect 301 / http://www.domain.com/
Redirect 301 / http://www.domain.com/
This is pretty simple way, used for redirection.
Hits: 4
0
Leave a Comment