mod rewrite symlinks
20/Jan 2013
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
<Location />
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</Location>
More Reading