From ae43da4602f147849d5b7da53ffb60c0d2a8c0e2 Mon Sep 17 00:00:00 2001 From: Adrian Short Date: Sun, 21 Oct 2018 13:45:50 +0100 Subject: [PATCH] Add Netlify _redirects file --- .gitignore | 4 +++- public/_redirects | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 public/_redirects diff --git a/.gitignore b/.gitignore index 568590b..76ac22f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,9 @@ *.db +*.sqlite .DS_Store .rvmrc .bundle/config /.ruby-gemset /tmp/ -_* +_site +_config.rb diff --git a/public/_redirects b/public/_redirects new file mode 100644 index 0000000..fff1e99 --- /dev/null +++ b/public/_redirects @@ -0,0 +1,5 @@ +# Redirect domain aliases to primary domain +https://elections.opensutton.org/* https://elections.adrianshort.org/:splat 301! + +# Optional: Redirect default Netlify subdomain to primary domain +https://suttonelections.netlify.com/* https://elections.adrianshort.org/:splat 301!