From: Stephen Cameron Date: Mon, 15 Mar 2021 09:39:08 +0000 (+0100) Subject: Wait #4244 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=87899e5f5a8c24a951d813e3c6086e822516ca1d;p=ccv-email.git Wait #4244 @0.5 --- 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() {