Apache 2 virtual host redirect Feb 12

For one of my sites, I own .org, .net, and .com for the domain and I want all the requests to go to the .org domain. I switched to Apache 2 and this is the configuration I used:

<VirtualHost *:80>
  ServerName india.bigpatents.com
  ServerAlias india.bigpatents.com 

  RedirectMatch (.*) http://india.bigpatents.org$1

</VirtualHost>

1 comment

1 comment

stanislas guerra May 11 2008

Thanks ! I saw plenty of boring/stupid explanation without any example. I don't care about .htaccess or rewrite url !

Add a comment

Name (required)
Email (won't be displayed)
URL (include http://)
Comment (required)