Another question is whether we are required to use the toml file for rewrite rules or this is possible with _redirects file, it’s unclear with the official community post on the topic.
Last question first: You can use either netlify.toml or _redirects for redirects; both work
That site (coronatimemap.netlify.app) currently has no redirects deployed, so none would be in effect.
Could you tell me how you are trying to add them? I don’t see a netlify.toml NOR _redirects file in your current deploy on that site. The rule you mention should work fine:
…assuming you have no content under /barchart on coronatimemap, which you do not currently.
Since redirects are deploy-specific, perhaps you could link me to an older deploys’ logs in our admin UI (picking from here: Netlify App) that you think had that redirect so I can examine what happened with that deploy?
Note that _redirects needs to be next to index.html in the publish directory
Yeah, the redirects was not there 'cause it was not working at the time. I added it again if you want to investigate the file content.
I was actually trying it out on https://covidtimemap.netlify.app/, which is why you did not see the logs.
Hi, @coronatimemap.com. I replied to you about this in a ticket opened for this issue as well.
To summarize the answer there, I do see the redirects working. The page doesn’t display because of the links in the HTML are absolute (instead of relative). This means when it is proxied to other page resources referenced in the HTML are 404s. Using relative links for assets in the proxied to HTML will resolve the issue.
If there are other questions about this, please let us know.