From 7d618c7ea4a30df7fc1c36b39d232ee11e476cb2 Mon Sep 17 00:00:00 2001 From: Mike Fix Date: Wed, 28 Aug 2019 17:22:14 -0700 Subject: [PATCH] trailing slash redirect --- now.json | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/now.json b/now.json index 81b3e5c05..f0712c8a1 100644 --- a/now.json +++ b/now.json @@ -26,6 +26,11 @@ "Service-Worker-Allowed": "/" } }, + { + "src": "^(/*)(.+)/$", + "status": 301, + "headers": { "Location": "/$2" } + }, { "src": "/", "continue": true, @@ -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": {