]> _ Git - ccv-email.git/commitdiff
Wait #4244 @0.5
authorStephen Cameron <stephen@cubedesigners.com>
Mon, 15 Mar 2021 09:39:08 +0000 (10:39 +0100)
committerStephen Cameron <stephen@cubedesigners.com>
Mon, 15 Mar 2021 09:39:08 +0000 (10:39 +0100)
public/.htaccess
routes/web.php

index 3aec5e27e5db801fa9e321c0a97acbb49e10908f..1b52d6d94aff8a4a151fe157244f35928f8aa819 100644 (file)
@@ -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}]
index 9eb84e8db0112d21e68efae142a941b1f985fab6..0cf4f03e51b4fc3c227d16b5e322459f33fab5f5 100644 (file)
@@ -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()  {