You don't have to worry.  Rails runs as the 404 handler, so only
handles files that do not exist in the normal web server html area.
So, if the php file exists, it should take precedence over rails.
Think of how the index.html file has to be removed from a new rails
app to get it started.

I'd set a catchall route so that Rails would notice missing files in
those applications.

Brendon.

On Apr 5, 8:37 am, Chris Benson <ch...@chrisbenson.com> wrote:
> Thanks Fred, but it's a shared hosting environment, and I don't have
> access to anything outside my /home area.
>
> I'm looking for a way to tell Rails routing, "Ignore these two
> directories."
>
> On Apr 5, 7:07 am, Frederick Cheung <frederick.che...@gmail.com>
> wrote:
>
> > On Apr 5, 8:03 am, Chris Benson <ch...@chrisbenson.com> wrote:> I have a 
> > Rails application that a couple of folders in the root (of
> > > public) for Wordpress and Mediawiki that I want to completely exclude
> > > from Rails routing.  How do I have the routing function of my Rails
> > > app ignore anything in the /blog or /wiki directories?
>
> > > Example:
>
> > > When someone types inhttp://mydomain.com/blog, I want the Rails app's
> > > routing to ignore it.
>
> > Typically you don't do this inside rails, you do this in apache, nginx
> > etc. by telling it to only proxy through to rails what you want to
> > through (so normally you would let nginx or apache handle static
> > files)
>
> > Fred
>
> > > Thanks,
> > > Chris
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to