first setup of cloudflare + htaccess redirects

This commit is contained in:
2022-10-13 23:18:52 +02:00
parent 106b77281c
commit 1541303669
4 changed files with 87 additions and 0 deletions

View File

@@ -189,6 +189,18 @@ export default {
},
},
},
{
resolve: "gatsby-plugin-htaccess",
options: {
www: true,
host: "www.rickvanlieshout.com",
https: true,
redirect: [
"RewriteRule ^/?home/(.*)$ //$1 [L,R=301]",
"RewriteRule ^/?old/(.*)$ /new/$1 [L,R=301]",
],
},
},
"gatsby-plugin-image",
"gatsby-plugin-catch-links",
"gatsby-plugin-react-helmet",