From 87899e5f5a8c24a951d813e3c6086e822516ca1d Mon Sep 17 00:00:00 2001 From: Stephen Cameron Date: Mon, 15 Mar 2021 10:39:08 +0100 Subject: [PATCH] Wait #4244 @0.5 --- public/.htaccess | 3 +++ routes/web.php | 2 ++ 2 files changed, 5 insertions(+) diff --git a/public/.htaccess b/public/.htaccess index 3aec5e2..1b52d6d 100644 --- a/public/.htaccess +++ b/public/.htaccess @@ -5,6 +5,9 @@ RewriteEngine On + # Redirect old image references from root to public + RewriteRule ^([a-zA-Z0-9_\-]+\.(jpg|png))$ /assets/$1 [R=302,L] + # Handle Authorization Header RewriteCond %{HTTP:Authorization} . RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] diff --git a/routes/web.php b/routes/web.php index 9eb84e8..0cf4f03 100644 --- a/routes/web.php +++ b/routes/web.php @@ -20,6 +20,8 @@ Route::middleware(['auth.basic'])->group(function() { Route::match(['get', 'post'], '/diagnosis', [EmailController::class, 'diagnosis']); }); +Route::redirect('/template', '/diagnosis'); + // Quick way to test the email output without sending mail Route::get('/test', function() { -- 2.39.5