diff --git a/web.js b/web.js index b0cc3dd..bbd9214 100644 --- a/web.js +++ b/web.js @@ -5,7 +5,7 @@ var newBaseURL = process.env.NEW_BASE_URL || 'http://example.com'; var redirectStatus = parseInt(process.env.REDIRECT_STATUS || 302); var port = process.env.PORT || 5000; -app.get('*', function(request, response) { +app.all('*', function(request, response) { response.redirect(redirectStatus, newBaseURL + request.url); });