added .htaccess for 404 page

This commit is contained in:
Yves Gatesoupe 2020-07-18 02:22:53 +02:00
parent 08d70f4c2a
commit 0f5d4fbe2e
3 changed files with 4 additions and 3 deletions

View File

@ -35,6 +35,7 @@ module.exports = function(config) {
config.addPassthroughCopy('src/admin/previews.js');
config.addPassthroughCopy('node_modules/nunjucks/browser/nunjucks-slim.js');
config.addPassthroughCopy('src/robots.txt');
config.addPassthroughCopy('src/.htaccess');
config.addPassthroughCopy('src/form');
const now = new Date();

View File

@ -7,10 +7,9 @@ var config = {
password: "password",
host: "ftp.someserver.com",
port: 21,
localRoot: __dirname + "/local-folder",
localRoot: __dirname + "/dist",
remoteRoot: "/public_html/remote-folder/",
// include: ["*", "**/*"], // this would upload everything except dot files
include: ["*.php", "dist/*", ".*"],
include: ["*", "**/*", ".htaccess"], // this would upload everything except dot files
// e.g. exclude sourcemaps, and ALL files in node_modules (including dot files)
exclude: ["dist/**/*.map", "node_modules/**", "node_modules/**/.*", ".git/**"],
// delete ALL existing files at destination before uploading, if true

1
src/.htaccess Normal file
View File

@ -0,0 +1 @@
ErrorDocument 404 /404.html