mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2024-12-23 01:20:24 +03:00
ab6dff5c31
return 404 error if static assets does not exist
14 lines
491 B
ApacheConf
14 lines
491 B
ApacheConf
RewriteEngine on
|
|
RewriteBase /
|
|
|
|
# do not do anything for already existing files
|
|
RewriteCond %{REQUEST_FILENAME} -f [OR]
|
|
RewriteCond %{REQUEST_FILENAME} -l [OR]
|
|
RewriteCond %{REQUEST_FILENAME} -d
|
|
RewriteRule .+ - [L]
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
RewriteCond %{REQUEST_FILENAME} !-d
|
|
# if static asset do not do anything
|
|
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]
|