在 Rails 应用程序中添加 wordpress 博客 [英] Adding wordpress Blog in a Rails application

查看:41
本文介绍了在 Rails 应用程序中添加 wordpress 博客的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在域的主根目录中部署了 Rails 应用程序,并与我的 public_html/applicationname.com/进行了符号链接.我想在 applicationname.com/blog 路径中​​安装 wordpress.但是 Rails 不允许我这样做.我也尝试了一个子域,但仍然由 Rails 处理路由.

I have Rails application deployed on my home root directory of a domain and symlinked with my public_html/applicationname.com/. I wanted to install wordpress in applicationname.com/blog path. But rails ain`t allowing me to do so. I have tried a subdomain as well, but still, the routes are being handled by Rails.

将博客与 Rails 应用程序一起部署的最佳解决方案是什么?

What would be the best solution to deploy a blog along with Rails application ?

我只能想到 .htaccess 修改.

I can only think of .htaccess modification.

推荐答案

你应该把你的博客放到 rails 的公共目录中.
那是静态文件的地方(还有 php 文件).

You should put your blog into the rails' public directory.
That's the place for static files (and php ones are).

这篇关于在 Rails 应用程序中添加 wordpress 博客的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆