update seo

This commit is contained in:
2026-04-16 12:20:32 +05:30
parent 816476ed02
commit bf7245d6d1
11 changed files with 424 additions and 38 deletions

View File

@@ -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;
}