update seo
This commit is contained in:
@@ -59,12 +59,26 @@ server {
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
|
||||
# Known SPA routes — serve index.html
|
||||
# Homepage
|
||||
location = / {
|
||||
try_files /index.html =404;
|
||||
}
|
||||
|
||||
location ~ ^/(write|history|settings|privacy|about)(/|$) {
|
||||
# Pre-rendered public pages — each gets its own HTML with correct meta tags
|
||||
location ~ ^/about(/|$) {
|
||||
try_files /about.html =404;
|
||||
}
|
||||
|
||||
location ~ ^/privacy(/|$) {
|
||||
try_files /privacy.html =404;
|
||||
}
|
||||
|
||||
location ~ ^/termsofservice(/|$) {
|
||||
try_files /termsofservice.html =404;
|
||||
}
|
||||
|
||||
# Protected SPA routes — serve index.html (React handles auth redirect)
|
||||
location ~ ^/(write|history|settings)(/|$) {
|
||||
try_files /index.html =404;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user