firebase - 如何从 firebase 托管子目录指向 Wordpress 博客
问题描述
我们正在使用 firebase 来托管我们的 react js 应用程序。
此外,我们有一个 WordPress 博客,托管在 Siteground 上。
我们需要从[Domain]/blog
Firebase 提供托管配置对象,您可以使用重写规则来定义源和目标。但不幸的是,它只允许您在 Destination 中添加本地路径,而不是外部 IP 或域。
我们在 firebase 托管配置对象中需要这样的东西:
"hosting": {
// ...
// Serves index.html for requests to files or directories that do not exist
"rewrites": [ {
"source": "/blog",
"destination": "[SERVER IP / CUSTOM"
} ]
}
可能吗?
解决方案
推荐阅读
- django - Django 文件浏览器可以上传文件但无法打开文件并出现 404 错误
- xamarin - 为什么 ViewRender 的 OnTouchEvent() 覆盖方法没有触发?
- r - R使用需要两个变量的未命名函数的映射
- python - PyGreSQL 为单列选择语句返回意外结果
- javascript - Vue 的 'v-on' 指令和 vue.$on 有什么区别?
- testing - 在 TestCafe 中无法解析第二个 URL 时断言 URL 重定向
- go - 如何在眼镜蛇应用程序的帮助屏幕中隐藏别名
- json - 将键值格式的文本文件转换为 JSON 对象
- javascript - AngularJS 应用程序使用带有 MVC 的 Angular 路由随机冻结页面
- pine-script - Pine 脚本编码 - 如何引用现有变量