18 lines
566 B
ApacheConf
18 lines
566 B
ApacheConf
Options -MultiViews
|
|
RewriteEngine On
|
|
|
|
# Never cache HTML entry points - otherwise browsers keep old JS that
|
|
# requests /assets/* at domain root instead of /citpl_website/assets/*
|
|
<IfModule mod_headers.c>
|
|
<FilesMatch "\.(html)$">
|
|
Header set Cache-Control "no-cache, no-store, must-revalidate"
|
|
Header set Pragma "no-cache"
|
|
</FilesMatch>
|
|
</IfModule>
|
|
|
|
# SPA fallback - serve index.html for non-file requests under /citpl_website
|
|
RewriteBase /citpl_website/
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
RewriteCond %{REQUEST_FILENAME} !-d
|
|
RewriteRule ^ index.html [L]
|