Blog Sections Open
Using YAMS on Nginx in Evolution CMS
A minimal Nginx rewrite example for older YAMS-based multilingual Evolution CMS projects using language prefixes such as /ru/ and /en/.
Multilingual Evolution CMS setups based on YAMS often need a small Nginx adjustment so language-prefixed URLs resolve correctly before the request reaches the parser.
Example rewrite block
location ~ /(ru|en)/ {
root /path/to/site;
if (!-e $request_filename) {
rewrite ^/(ru|en)/(.*)$ /index.php?q=$2 last;
}
}
What it does
- matches language prefixes such as
/ru/and/en/ - checks whether the requested file exists physically
- rewrites unresolved requests back to
index.php?q=...
It is intentionally small, but this kind of configuration detail is exactly what can decide whether a multilingual site feels stable or fragile in production.
Building a Simple Multilingual Switcher Snippet in Evolution CMS
A classic multilingual snippet pattern for projects that need language switching in Evolution CMS without moving to a heavier framework or rewriting the whole site.
Creating a Simple Name Library for Reusable Text in Evolution CMS
A lightweight pattern for storing small reusable text fragments in a chunk and returning them through a snippet instead of hard-coding them everywhere.