Is it possible to have rails ignore a given route?
Dunno, but by the time it’s gotten to Rails, even if Rails did ignore
what would happen? My guess is Rails would return a 404. It’s too late
to pass it back even if it knew how to do so.
http://mysite.com # => This is my rails app
http://mysite.com/blog # => This is my wordpress blog
Can I map a route so that rails will ignore, or not handle, the blog
My 2 solutions are:
- Move the app to a subdomain
Probably the simplest as it completely isolates them, but not strictly
- Move the app into a subdrectory
Doable. Configure your webserver (apache/litespeed/etc) to not pass
requests matching “/blog” on to rails, but to handle them however it
handle it normally.
One of these will work, but out of curiosity, the question stands.
Both will work as long as you configure it correctly.