added .htaccess for 404 page
This commit is contained in:
parent
08d70f4c2a
commit
0f5d4fbe2e
@ -35,6 +35,7 @@ module.exports = function(config) {
|
|||||||
config.addPassthroughCopy('src/admin/previews.js');
|
config.addPassthroughCopy('src/admin/previews.js');
|
||||||
config.addPassthroughCopy('node_modules/nunjucks/browser/nunjucks-slim.js');
|
config.addPassthroughCopy('node_modules/nunjucks/browser/nunjucks-slim.js');
|
||||||
config.addPassthroughCopy('src/robots.txt');
|
config.addPassthroughCopy('src/robots.txt');
|
||||||
|
config.addPassthroughCopy('src/.htaccess');
|
||||||
config.addPassthroughCopy('src/form');
|
config.addPassthroughCopy('src/form');
|
||||||
|
|
||||||
const now = new Date();
|
const now = new Date();
|
||||||
|
@ -7,10 +7,9 @@ var config = {
|
|||||||
password: "password",
|
password: "password",
|
||||||
host: "ftp.someserver.com",
|
host: "ftp.someserver.com",
|
||||||
port: 21,
|
port: 21,
|
||||||
localRoot: __dirname + "/local-folder",
|
localRoot: __dirname + "/dist",
|
||||||
remoteRoot: "/public_html/remote-folder/",
|
remoteRoot: "/public_html/remote-folder/",
|
||||||
// include: ["*", "**/*"], // this would upload everything except dot files
|
include: ["*", "**/*", ".htaccess"], // this would upload everything except dot files
|
||||||
include: ["*.php", "dist/*", ".*"],
|
|
||||||
// e.g. exclude sourcemaps, and ALL files in node_modules (including dot files)
|
// e.g. exclude sourcemaps, and ALL files in node_modules (including dot files)
|
||||||
exclude: ["dist/**/*.map", "node_modules/**", "node_modules/**/.*", ".git/**"],
|
exclude: ["dist/**/*.map", "node_modules/**", "node_modules/**/.*", ".git/**"],
|
||||||
// delete ALL existing files at destination before uploading, if true
|
// delete ALL existing files at destination before uploading, if true
|
||||||
|
1
src/.htaccess
Normal file
1
src/.htaccess
Normal file
@ -0,0 +1 @@
|
|||||||
|
ErrorDocument 404 /404.html
|
Loading…
Reference in New Issue
Block a user