I wish to have multilanguage (php/html) site... but i'm very weak in nginx/rewrite In the http address there are 3 variables (ln -language, page, step)
There is a problem when i write https://testpage.org.pl/esp/home the "/esp/" - isnt recognized like $ln variable ...
how can i fix it?
here's my nginx rewrite:
rewrite ^/([a-zA-Z0-9]+)$ /index.php?page=$1 last;
rewrite ^/([a-zA-Z0-9]+)/step-([1-3])$ /index.php?page=$1&step=$2 last;
rewrite "^/([a-z]{2})/$" /index.php?ln=$1 last;
rewrite "^/([a-z]{2})/([a-zA-Z0-9]+)$" /index.php?ln=$1&page=$2 last;
rewrite "^/([a-z]{2})/([a-zA-Z0-9]+)/step-([1-3])$" /index.php?ln=$1&page=$2&step=$3 last;