Loading

Apache 2 Virtual Host Redirect

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>

Related Posts

  1. iPhone/iPad UISearchBar and UISearchDisplayController Asynchronous Example
  2. High Availability on a Shoestring -- Database Replication and Failover Alternatives
  3. SPF Records with Rails and ActionMailer
  4. Max OS X Animated GIF Editor Champion -- Pixen
  5. High Availability on a Shoestring -- Postgresql 9.0 Streaming Replication
You should follow me on Twitter: @patrickxb