redirect 301

Post By:user_63249 | Reply

how to redirect from

www.domain1.com

to

www.domain2.com

on both domains is opencart installed(same version - 1.5.3.1)
user_63249Mon, 30 Nov -0001

how to canonicalize the ip?

i want to redirect from IP to domain name

user_65651Mon, 30 Nov -0001

All you need to do is add this to your HTaccess file. Obviously change the old domain to the one you want to redirect and the new domain to the new website.

Code: Select all
 RewriteCond %{HTTP_HOST} ^www.olddomain.com$
 RewriteRule (.*)$ http://www.newdomain.com/$1 [R=301,L]

`Reply Or Comment!
Please LogIn to Reply!