Dev.to
5/12/2026

Bilingual FR/EN blog in pure PHP: architecture without framework or database
Short summary
Guide to adding bilingual (FR/EN) support to a pure-PHP blog without framework or database. Uses separate files per language, URL-based routing with /en/ prefix, and restructured JSON metadata. Includes Apache .htaccess rewrites and PHP router patterns with concrete code examples.
- •Separate PHP files per language avoids unmaintainable translation arrays
- •URL-based routing with /en/ prefix maintains SEO and clean user experience
- •Restructured JSON nests language fields while keeping slug and date language-agnostic
Generated with AI, which can make mistakes.
Is this a good recommendation for you?



