shlink-web-client/public/.htaccess

15 lines
491 B
ApacheConf
Raw Normal View History

RewriteEngine on
2020-01-30 22:49:46 +03:00
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
2020-01-30 22:49:46 +03:00
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]
2020-01-30 22:49:46 +03:00
RewriteRule (.*) /index.html [L]