I was trying to redirect all of my one wordpress blog setup which is setup on sub directory to the dedicated wordpress domain. To do so I have added following in directory based blog’s htaccess file:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^example1.com$ [NC]
RewriteCond %{REQUEST_URI} ^/wp-blog/(.*) [NC]
RewriteRule ^(.*)$ http://example2-blog-site.com/%1
RewriteCond %{HTTP_HOST} ^www.example1.com$ [NC]
RewriteCond %{REQUEST_URI} ^/wp-blog/(.*) [NC]
RewriteRule ^(.*)$ http://www.example2-blog-site.com/%1
Advertisement

Posted by nike sb dunks on April 25, 2010 at 9:37 AM
Thanks for making my morning a little bit better with this great article!!
Posted by jordan shoes on April 26, 2010 at 8:27 PM
very well
information you write it very clean. I’m very lucky to get this information from you.