diff --git a/dist/.htaccess b/dist/.htaccess index e69de29..3a73a5f 100644 --- a/dist/.htaccess +++ b/dist/.htaccess @@ -0,0 +1,8 @@ +Options -MultiViews +RewriteEngine On + +# 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] diff --git a/public/.htaccess b/public/.htaccess index e69de29..3a73a5f 100644 --- a/public/.htaccess +++ b/public/.htaccess @@ -0,0 +1,8 @@ +Options -MultiViews +RewriteEngine On + +# 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]