I am really a new comer to apache mod_rewrite module. I've got a page known as http://abc during my company intranet. I would like customers to become rerouted to http://abc.somecompanyname.com every time they type http://abc towards the URL bar. Could someone please provide and example or point me within the right direction.

I figure this ought to be quite a simple question to reply to. Thanks everybody for you personally inputs.


You can accomplish this having a VirtualHost definition as easy as this, around the server handling demands for abc:

<VirtualHost *:80>
    ServerName abc
    RewriteEngine on
    RewriteRule ^/(.*)$ http://abc.somecompanyname.com/$1 [R,L]