mod_rewrite rules for new domain

Networking, Site News, Linux Add comments

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.

Leave a Reply

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Login


Copyright © 2007 Jeremy L. Gaddis.
25 monkeys, 0.431 seconds.