mod rewrite symlinks

So I set up WordPress to exist on a mounted hard drive, which is not the DocumentRoot. I decided to create a symlink to it within the DocumentRoot for this vhost, but the .htaccess file WP was creating was not working. I was getting 404 errors for the permalinks.

I tried using a Alias instead of a symlink but it resulted in the same problem. Adding a portion to this vhost to include the mod_rewrite config that was generated by WP into it solved the problem.

<Location />
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
More Reading