Recently we launched a new website for Gossen Insurance. As of April 1st they have been bought by Block’s Agencies and will be operating under that name, along with two other agencies in Borden and Langham. We’ve re-branded the new Gossen Insurance website for Block’s Agencies, and added the two other locations that Block’s Agencies owns to the website as well. The website is now available through both blocksagencies.ca and blocksagencies.ca. This makes sure that any links to the old website, either sent out by email, printed on promotional material, or on Facebook will continue to work and will take the you to the right page. If you’d like to see how we set this up to make sure we didn’t confuse any visitors you can ready about it in our blog here.
Redirecting your website to a new domain
Have you ever needed to move your website to a new domain? This can be a tricky thing to do without breaking all the links to your website that exist in emails, print media, Facebook, or anywhere else on the internet. It is possible to redirect all incoming links with a piece of .htaccess code that will keep all your old links working.
.htaccess Code
RewriteEngine On RewriteBase / # New code to redirect from olddomain.com to newdomain.com # Permanent redirect for caching purposes, also include the query string RewriteCond %{HTTP_HOST} ^olddomain.com RewriteRule (.*) http://newdomain.com/$1 [R=permanent,QSA,L] # New code to redirect from www.olddomain.com to www.newdomain.com RewriteCond %{HTTP_HOST} ^www.olddomain.com RewriteRule (.*) http://www.newdomain.com/$1 [R=permanent,QSA,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L]
Note:
Replace olddomain.com with your old domain name, and newdomain.com with your new domain name. This will redirect all links that go to your old domain to your new domain.
Link Examples
http://blocksagencies.ca/insurance-tips/faq/
Takes you too
http://blocksagencies.ca/insurance-tips/faq/
http://blocksagencies.ca/contact-us/
Takes you too
http://blocksagencies.ca/contact-us/