I've got a Rails site, and I must install Wordpress within the /public directory.

Used to do this, and delay pills work fine, except after i click articles, it 404s. See http://aromapersona.com/blog/.

How do you ensure that it stays from 404ing? I am presuming I must give a route.

I am using Apache and Passenger.

You are able to disable Passenger inside your VirtualHost for the location for instance

<Location /your/railsfolder/path/public/blog>

    PassengerEnabled off


You might want to do something positive about your directory directives too inside. :)

I do not think you need to do anything particularly using the Rails routes. I've got a Rails 2.3.8 application setup that actually works much like this, and there's nothing specific within the Rails application itself.

I'm presuming the wordpress blog is relaxing in public/blog.

You need to have the ability to add PassengerEnabled Off within the public/blog/.htaccess.

You'll should also look at your Wordpress configurations and make certain the Wordpress address and Blog address web addresses are generally pointing to http://aromapersona.com/blog

What wound up working was this inside a .htaccess file:

<IfModule mod_rewrite.c> 
RewriteEngine On 
RewriteBase /blog/ 
RewriteRule ^index\.php$ - [L] 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule . /blog/index.php [L]