Skip to content

Support non existent .htaccess files #11

@chmac

Description

@chmac

See #10 for some context. If there is no existing .htaccess file, then each run of gatsby build results in the redirects being added to the existing file. Ideally, the plugin should support appending to an existing .htaccess file in static/ as well as creating an empty file.

One approach could be to read the contents of static/.htaccess ourselves, and then append our redirects, and output this.

PRs welcome.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions