301 redirect to new domain

Spread the love
  •  
  •  
  •  
  •  
  •  
  •  

If you have moved your site to a new domain and want that the traffic from the old domain should get redirected to the new domain, add the following lines in the .htaccess file of the old server

redirect 301 / http://www.newdomain.com/


Spread the love
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  

Leave a Reply

Your email address will not be published. Required fields are marked *