20/Jan 2013
		          
      				
      				
      					
      				
              
                 1 min. read
              
      				
      					
      				
            
            
            	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.