We are using firebase to host our react js application.
Also, we have a WordPress blog, hosted on Siteground.
We need to access the blog from [Domain]/blog
Firebase offers hosting configuration object and you can use rewrite rules to define source and destination. But unfortunately, it just lets you add a local path in Destination, not external IP or Domain.
We need something like this in firebase hosting config object:
"hosting": {
// ...
// Serves index.html for requests to files or directories that do not exist
"rewrites": [ {
"source": "/blog",
"destination": "[SERVER IP / CUSTOM"
} ]
}
Is it possible?