瀏覽代碼

Add Netlify _redirects file

tags/v2.0.0
Adrian Short 6 年之前
父節點
當前提交
ae43da4602
共有 2 個文件被更改,包括 8 次插入1 次删除
  1. +3
    -1
      .gitignore
  2. +5
    -0
      public/_redirects

+ 3
- 1
.gitignore 查看文件

@@ -1,7 +1,9 @@
*.db
*.sqlite
.DS_Store
.rvmrc
.bundle/config
/.ruby-gemset
/tmp/
_*
_site
_config.rb

+ 5
- 0
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!

Loading…
取消
儲存