Skip to content

Commit

Permalink
trailing slash redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
mfix22 committed Aug 29, 2019
1 parent 60f23d0 commit 7d618c7
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions now.json
Expand Up @@ -26,6 +26,11 @@
"Service-Worker-Allowed": "/"
}
},
{
"src": "^(/*)(.+)/$",
"status": 301,
"headers": { "Location": "/$2" }
},
{
"src": "/",
"continue": true,
Expand All @@ -43,14 +48,6 @@
"Feature-Policy": "geolocation 'self'; microphone 'self'; camera 'self'"
}
},
{
"src": "/embed/",
"dest": "/embed.html"
},
{
"src": "/about/",
"dest": "/about.html"
},
{ "handle": "filesystem" }
],
"build": {
Expand Down

0 comments on commit 7d618c7

Please sign in to comment.