How to redirect to Print

  • 19

Most sites can be reached by two different URLs. Some sites however will redirect a visitor from to - this is essential when you are installing an SSL Certificate. For example, we redirect visitors from to automatically.

Setting up a www redirect will tell any search engines to go to and if you issue an SSL Certificate to the www. version it will also ensure that no visitors every see an invalid ssl certificate by visiting

If you are on an Apache webserver, you can use mod_rewrite in order to redirect all traffic that goes to thedomain to the "www" domain.

Try adding this to a file named ".htaccess" at the root of your site (create that file if it doesn't exist):

	RewriteEngine On  
RewriteBase /
RewriteCond %{HTTP_HOST} ^$
RewriteRule ^(.*)$$1 [R=301,L]

Note: If you are using an SSL Certificate then be sure to change the http:// to https://

This kind of redirect will work on all of our hosting services.

Was this answer helpful?

« Back