Anybody help me to redirect in apache webserver

My domain names that have .co.in extensions

http://domain.co.in ought to be rerouted to http://www.domain.co.in

To rewrite this domain:

RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.domain\.co\.in$ [NC]
RewriteRule ^(.*)$ http://www.domain.co.in$1 [L,R,QSA]

To rewrite for multiple domain names in a single rule:

RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}$1  [L,R,QSA]

produce a .htaccess within the web root,

Options +FollowSymlinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^domain.co.in [nc]
RewriteRule ^(.*)$  http://www.domain.co.in/$1 [R=301,L]

You don't need mod-rewrite complexity to achieve that, probably the most fundamental configuration is going to do the task better (simplier=better).

Make one Virtualhost, that contains all domain names to become rerouted (one out of ServerName others in ServerAlias). Within it use Redirect right one, in which you only use one ServerName.

<VirtualHost *:80 />
   # catch all DNS to be redirected here
   ServerName redirect.domain.co.in
   ServerAlias domain.co.in
   ServerAlias domain.org
   ServerAlias domain_co_in.com

   Redirect permanent / http://www.domain.co.in/
</VirtualHost>

<VirtualHost *:80 />
    # The real VH with only one name
    ServerName www.domain.co.in
    (...)
</VirtualHost>