可以从根目录访问Webapp和Wordpress

时间:2020-05-20 11:40:40

标签: ruby-on-rails wordpress nginx

我已经构建了一个Web应用程序,现在我需要将其与Wordpress博客配对。
SEO家伙希望可以直接从根域访问该博客,但我不确定是否可以。

我需要设置的是:

https://webapp.com/ -> go to the webapp homepage  
https://webapp.com/products/wine -> go to the webapp product page for wine  
https://webapp.com/best_wines -> go to the wordpress page "best_wines" 

SEO家伙只是想要拥有显示为属于同一域的WP页面。

可以在Nginx上访问基于Rails编写的Web应用,该应用将请求发送给Puma。
webapp和Wordpress驻留在两个不同的机器中(两个Digital Ocean液滴更具体)。

我考虑过要在Nginx中为每个需要显示的WP页面添加一个重定向,尽管我非常不喜欢它,但这是一种解决方案,也许是唯一可行的解​​决方案。
wp管理员将不会重定向,它将位于https://webapp.com/blog/wp-admin

是否存在针对此类问题的解决方案?

0 个答案:

没有答案