[Techtalk] Mod Rewrite rules

Michelle Murrain michelle at murrain.net
Sun Sep 13 06:33:01 UTC 2009


Hi all,

I have an interesting situation. I have two websites, one an old  
static HTML site (domain1.com), and the other a wordpress blog  
(domain2.com, that I am merging into one drupal site.

domain1.com is already pointing to the new drupal site. I used a  
Drupal module, called Wordpress import, that took in all of my WP  
posts, and put them in drupal so that once I pointed domain2.com to  
the drupal site, all the URLs for the individual pages would work. Yay!

One thing remains. The main page of the blog is at domain1.com/blog. I  
would like to redirect "domain2.com/" (and only that - no other pages  
below it) to point to /blog

This is what I've got so far in my .htaccess file:

   RewriteCond %{HTTP_HOST} ^domain2.com$
   RewriteCond %{REQUEST_URI} =/
   RewriteRule ^/$ /blog/

Alas, this doesn't work.

Any tips?

TIA,
Michelle
_______________________
Michelle Murrain
michelle at murrain.net
http://zenofnptech.org
http://openissue.com
http://twitter.com/pearlbear

Let the beauty of what you love be what you do. - Rumi



More information about the Techtalk mailing list