Redirecting a domain to another domain

Permanent redirect of both domain.com and www.domain.com:

Add the following in your .htaccess file:

Scenario 1: Redirect all of your domains to droidzone.asia, including www. requests:

RewriteOptions inherit

RewriteEngine on
RewriteCond %{HTTP_HOST} ^.*$
RewriteRule ^/?$ "http\:\/\/www\.droidzone\.in\/" [R=301,L]

This kept in my domain droidzone.asia redirects visitors to droidzone.in without showing any delay or messages.

Scenario 2: Redirect only http://droidzone.asia to droidzone.in:

RewriteEngine on

RewriteOptions inherit

RewriteCond %{HTTP_HOST} ^droidzone.asia$
RewriteRule ^/?$ "http\:\/\/www\.droidzone\.in\/" [R=301,L][/code]
Scenario 3: Redirect only http://droidzone.asia and http://www.droidzone.asia:
RewriteEngine on

RewriteOptions inherit

RewriteCond %{HTTP_HOST} ^droidzone\.asia$ [OR]
RewriteCond %{HTTP_HOST} ^www\.droidzone\.asia$
RewriteRule ^/?$ "http\:\/\/www\.droidzone\.in\/" [R=301,L]

The last one is a Permanet (301) wildcard redirect:

RewriteEngine on
RewriteOptions inherit
RewriteCond %{HTTP_HOST} ^droidzone\.asia$ [OR]
RewriteCond %{HTTP_HOST} ^www\.droidzone\.asia$
RewriteRule ^(.*)$ "http\:\/\/www\.droidzone\.in\/$1" [R=301,L]

The following is a temporary (302) redirect:

RewriteCond %{HTTP_HOST} ^droidzone\.asia$ [OR]
RewriteCond %{HTTP_HOST} ^www\.droidzone\.asia$
RewriteRule ^(.*)$ "http\:\/\/www\.droidzone\.in\/$1" [R=302,L]

As can be noted, the only difference is the number 302 instead of 301