ads.txt support for Plasmic-hosted site

Hi guys!! I’m setting up an advertising platform on a website hosted through Plasmic and need to make an ads.txt file accessible at the root of my custom domain:

https://example.com/ads.txt

The advertising provider requires this URL to either:

  1. Serve a static ads.txt file directly from the domain root, or

  2. Return a proper server-side HTTP 301/302 redirect to an externally hosted ads.txt file.

A client-side HTML or JavaScript redirect won’t work because the request must be handled at the HTTP/server level.

Does Plasmic hosting support either option? If not, is there a recommended way to expose an ads.txt file at the root of a Plasmic-hosted custom domain?

Thank youu - Ben

Hi! Plasmic Hosting currently doesn’t support arbitrary files at the domain root, or configuring server redirects for individual paths. /ads.txt would be treated as a normal Plasmic page route, so a page or client-side redirect wouldn’t work with crawlers.

The usual solution is to deploy the Plasmic site through a hosting provider like Vercel or Netlify, where you can add public/ads.txt directly.

Another possibility, if you want stick with Plasmic Hosting, is to use something like Cloudflare to proxy traffic, and configure an /ads.txt rule there that redirects to an external file.