# Future Proofing (No Generator) This site is intentionally hand-edited PHP. Keep the *style* the same while making maintenance easier and the surface more resilient. ## Principles - Navigation and core content should work without JavaScript. - External embeds should always have a plain-link fallback. - URLs should be stable; if something must move, leave a redirect page. - Translations follow a consistent naming rule (`_jp.php` / `_zh.php`). - Secrets stay outside the document root. - nginx owns security headers (CSP, HSTS, nosniff, Referrer-Policy, Permissions-Policy). ## What We Have ### 1) Sitemap and robots.txt - `robots.txt` points to `sitemap.xml` and disallows admin/API/tools paths - `python3 tools/generate_sitemap.py` rebuilds the public crawl map ### 2) Human-friendly site map - `/map/` is a clickable index for humans (with JP/ZH variants) ### 3) Translation naming convention - Default English: `page.php` or `section/index.php` - Japanese: `page_jp.php` or `section/index_jp.php` - Simplified Chinese: `page_zh.php` or `section/index_zh.php` - Strings live in `locales/{en,ja,zh}.php` via `t('key')` ### 4) Redirect page pattern If you rename or move a page, keep an old file that points to the new place. Example: ```php