Thanks so much. It worked. So my conf file looks something like:
RailsAllowModRewrite on
RewriteRule ^/drupal/?(.*)$ %{DOCUMENT_ROOT}/drupal/$1 [NC,QSA,L]
RewriteRule ^/wp/?(.*)$ %{DOCUMENT_ROOT}/wordpress/$1 [NC,QSA,L]
Right now I have installed my wordpress and drupal in the public
folder of my rails application. Is there a way I can move them to the
root of my apache (/var/www/html) and point the RewriteRule to that
path? I am guessing I have to modify the DOCUMENT_ROOT path. But
specifying like %{DOCUMENT_ROOT}/../../wordpress/ didn't work. Any
idea how to specify the path correctly?
-subbu
On Jul 13, 11:18 pm, "Yaroslav Markin" <
yaroslav.mar...@gmail.com>
wrote:
> You can use mod_rewrite with Passenger; you need to double check that
> .htaccess in public/ folder of your rails application is not "harmful" (e.g.
> redirecting to dispatch.cgi), or simply delete public/.htaccess, and then
> enable
> RailsAllowModRewrite on
>
> and you're safe to use mod_rewrite rules.
>