Updates htaccess

return 404 error if static assets does not exist
This commit is contained in:
MartinH0 2020-01-30 20:51:23 +01:00 committed by GitHub
parent 2ef330c62b
commit ab6dff5c31
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,5 +10,5 @@ RewriteRule .+ - [L]
RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-d
# if static asset do not do anything # 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] RewriteRule (.*) /index.html [L]