I am new to RoR, coming from an ASP.NET background. I’m currently
working
on a politically-themed social network, and I want to have multiple
bloggers
who will blog about various topics. My web host offers several
PHP-based
blogging engines, and I like WordPress, so I am trying to set it up with
a
subdomain such as blogs.mydomain.com/blog_name. However, I’m getting
Rails
errors because the URL uses the same conventions as Rails, and it’s
trying
to interpret it as a Rails application, so it’s not finding a controller
or
view.
Is there any way that I can tell Rails NOT to try and parse these URLs?
I
mean, I could easily just tack on index.php to the URL, and it seems to
work
properly, but I’m sure I won’t always remember it, and I doubt the
bloggers
will, either (I want to give them some degree of autonomy with their
blogs).
Is there any way that I can tell Rails NOT to try and parse these
URLs? I mean, I could easily just tack on index.php to the URL, and
it seems to work properly, but I’m sure I won’t always remember it,
and I doubt the bloggers will, either (I want to give them some
degree of autonomy with their blogs).
Can anyone provide suggestions?
Regards,
Personally, I’d create an Apache virtual host for blogs.mydomain.com
and set the DocumentRoot to wherever you need your PHP app to live.
Is there any way that I can tell Rails NOT to try and parse these URLs?
No. You must tell mommy to separate these children’s toys. Configure
your web
server itself (Apache or whatever) to route certain paths to PhP and
others to
Rails.
–
Phlip
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.