You are viewing the tag: header location

Changing to a new domain?

If you are moving your site to a new domain name and want to redirect all your current traffic as well as inform all of the search engines as they crawel your site of the move to the new, you can place the following code in your main include file or each file individually. if($_SERVER[‘HTTP_HOST’] != “www.your-new-domain-here.com“){   header( “HTTP/1.1 301 […]