Redirecting domains with htaccess

In some cases your clients might change their primary domain name and want any old requests to find their new home.

So open up your htaccess file and add the following:

RewriteEngine on RewriteCond %{HTTP_HOST} ^(www\.)?xtreme4s\.net$ RewriteRule ^(.*)$ http://www.ontheball.com.au/$1 [R=301,L]

So the above will force any requests to xtreme4s.net and redirect them to ontheball.com.au with a 301 response.

Recommended reading

Design by Jon