static-html-output icon indicating copy to clipboard operation
static-html-output copied to clipboard

Does not export file _redirects

Open matteomantovani opened this issue 6 years ago • 1 comments

Hi I have add in root website folder a file named _redirects, but when export zip folder cannot export it. See attachment. Screenshot_1

matteomantovani avatar Mar 24 '19 18:03 matteomantovani

Hi @matteomantovani - sorry for the late reply. Until version 7, the Netlify API based deploy is publicly available in this repo, it includes the option to insert the contents of your Netlify _redirects file.

I'll fix this issue for an upcoming release, but in the meantime, if you're not using Netlify or want more flexibility, there are a few options:

  • run via WP-CLI
    • wp wp2static generate
    • your custom script to add the _redirects file to export dir
    • wp wp2static deploy
  • Use the post-deploy hook: https://github.com/WP2Static/wp2static#post-deployment-hook

leonstafford avatar Apr 05 '19 10:04 leonstafford