Generates redirects in a Netlify redirects file for any file or folder
that starts with the prefix specified in
NetlifyRedirectPrefix
(^
by default) to the same name without them.
The default value is true
so set this to false
to prevent
this behavior.
- Namespace
- Statiq
.Web - Containing Type
- WebKeys
- Field Type
- string
Syntax
public const string NetlifyPrefixRedirects
Remarks
This is useful when you need to output and upload a file or folder with a
different name than what you want Netlify to serve.
In particular, it's required to support uploading files or folders that start
with a dot to Netlify since Netlify doesn't support uploading those artifacts
normally (see https://answers.netlify.com/t/netlify-deploy-api-removes-files-and-directories-beginning-with-a-period/37728/9).
This setting has no effect if
NetlifyRedirects
is false
.
Constant Value
Value | Type |
---|---|
NetlifyPrefixRedirects | String |