【发布时间】:2016-12-08 23:28:18
【问题描述】:
我有两个应用程序:
- 为所有域流量提供服务的 WordPress 多站点应用程序
- Ember 应用仅服务于 /example/path/
在某种程度上,ember 处理到“/example/path/”的流量,但它也处理此后的任何其他路由,例如“/example/path/pretty-wp-page”:
Alias "/example/path" "/var/www/ember/app/dist"
问题是,我希望 ember 只处理到 '/example/path/' 和 '/example/path/another-ember-route' 的流量,而 WordPress 来处理任何其他流量,例如 '/example/path/pretty -wp-page'
我尝试了以下方法:
AliasMatch "/example/path(/|another\-ember\-route)" "/var/www/ember/app/dist"
无济于事。有什么想法或建议吗?我已经用尽了我的技能,在 apache 文档中看不到解决方案,而且 Google 也没有提供任何东西。
谢谢
【问题讨论】:
标签: regex wordpress apache ember.js