Subdirectory and publish directory, redirection

Hi, @mogya. If you change the publish directory in netlify.toml then you must also put a netlify.toml (or _redirects) file in the base of the publish directory.

The redirects in the first netlify.toml, the one which changes the base directory, will never be read.

There is a more detailed explanation of this behavior here:

If there are other questions about this, please let us know.

1 Like