mod_rewrite rules for new domain

Written by jlgaddis on September 27, 2005 – 12:42 pm -

I was asked privately by e-mail for the mod_rewrite rules that I used to redirect everything from www.gaddis.org to www.jeremygaddis.com. It was a very simple thing to implement, and I did it by creating an .htaccess file in the DocumentRoot of the virtual host for www.gaddis.org. It contains simply:

RewriteEngine on RewriteRule ^(.*)$ http://www.jeremygaddis.com/$1 [R=301,L]
Try that, it should get you going. I did the same thing to redirect www.linuxwiz.net to www.jeremygaddis.com, too, by the way.

Share and Enjoy:
  • StumbleUpon
  • Digg
  • Reddit
  • Facebook
  • del.icio.us
  • Twitter

Tags: , , | No Comments »

Leave a Comment