From ab6dff5c3173bae93b63f7f3c7b0112a73cae393 Mon Sep 17 00:00:00 2001 From: MartinH0 Date: Thu, 30 Jan 2020 20:51:23 +0100 Subject: [PATCH] Updates htaccess return 404 error if static assets does not exist --- public/.htaccess | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/.htaccess b/public/.htaccess index a04ff98c..d135ef6c 100644 --- a/public/.htaccess +++ b/public/.htaccess @@ -10,5 +10,5 @@ RewriteRule .+ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d # if static asset do not do anything -RewriteRule (.*)(css|js|html|png|jpg|jpeg|json|gif|bmp|ico|json|csv|otf|eot|svg|svgz|ttf|woff|woff2|ijmap|pdf|tif|map)$ - [L] +RewriteRule (.*)(css|js|html|png|jpg|json|jpeg|gif|bmp|ico|json|csv|otf|eot|svg|svgz|ttf|woff|woff2|ijmap|pdf|tif|map)$ - [L,R=404] RewriteRule (.*) /index.html [L]