title: .htaccess: WordPress MS in root, xenForo in subdir, rewrite parked domain
body: <p>I have a website at <a href="http://rplstoday.com" rel="nofollow">http://rplstoday.com</a> -- WordPress is installed in the root and xenForo is installed at /community. I have another domain (<a href="http://beerleg.com" rel="nofollow">http://beerleg.com</a>) pointing there, but I want everything to point at their respective rplstoday.com locations. That is:</p>
  
  <ul>
  <li>beerleg.com --> rplstoday.com</li>
  <li>beerleg.com/community --> rplstoday.com/community</li>
  <li>beerleg.com/community/blahblah --> rplstoday.com/community/blahblah</li>
  </ul>
  
  <p>Here is what I currently have in .htaccess in root:</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
  Options +FollowSymLinks
  RewriteEngine On
  RewriteCond %{HTTP_HOST} ^beerleg.com$ [OR]
  RewriteCond %{HTTP_HOST} ^www.beerleg.com$
  RewriteRule (.*)$ http://rplstoday.com/$1 [R=301,L]
  &lt;/IfModule&gt;
  
  # BEGIN WordPress
  &lt;IfModule mod_rewrite.c&gt;
  RewriteEngine On
  RewriteBase /
  RewriteRule ^index\.php$ - [L]
  # add a trailing slash to /wp-admin
  RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
  RewriteCond %{REQUEST_FILENAME} -f [OR]
  RewriteCond %{REQUEST_FILENAME} -d
  RewriteRule ^ - [L]
  RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
  RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
  RewriteRule . index.php [L]
  &lt;/IfModule&gt;
  # END WordPress
  </code></pre>
  
  <p>The default xenForo .htaccess in /community is untouched, and looks like this:</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
  RewriteEngine on
      #   If you are having problems with the rewrite rules, remove the "#" from the
      #   line that begins "RewriteBase" below. You will also have to change the path
      #   of the rewrite to reflect the path to your XenForo installation.
      #RewriteBase /community
  
      #   This line may be needed to enable WebDAV editing with PHP as a CGI.
      #RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
  
      RewriteCond %{REQUEST_FILENAME} -f [OR]
      RewriteCond %{REQUEST_FILENAME} -l [OR]
      RewriteCond %{REQUEST_FILENAME} -d
      RewriteRule ^.*$ - [NC,L]
      RewriteRule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml|robots\.txt) - [NC,L]
      RewriteRule ^.*$ index.php [NC,L]
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>However, here's what really happens:</p>
  
  <ul>
  <li>beerleg.com --> rplstoday.com</li>
  <li>beerleg.com/community --> beerleg.com/community</li>
  <li>beerleg.com/community/blahblah --> beerleg.com/community/blahblah</li>
  </ul>
  
  <p>As you can see, the rewrite only occurs for the base domain, but not when going to any internal URLs. My lack of knowledge (and inability to find fixes via Google) has me stumped. I would deeply appreciate any help!</p>