I18N version 2.3:
Define a separator in gsconfig.php (it should be a unique character/string, which does not exist in slugs):
Adjust the RewriteRules in .htaccess, e.g. my rules supporting language and page numbers in the URL are:
- Option to include language in fancy URL, if special language is requested, e.g. /products/notebook:en/ (use get_i18n_page_url or find_i18n_url or return_i18n_lang_url, if you need to construct URLs)
Define a separator in gsconfig.php (it should be a unique character/string, which does not exist in slugs):
Code:
define('I18N_SEPARATOR',':');
Adjust the RewriteRules in .htaccess, e.g. my rules supporting language and page numbers in the URL are:
Code:
...
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^(.*):([a-z]+)([^a-z/][^/]*)?/?$ $1$3?lang=$2 [QSA,DPI]
RewriteRule ^(.*);(\d+)([^\d/][^/]*)?/?$ $1$3?page=$2 [QSA,DPI]
RewriteRule /?([A-Za-z0-9_-]+)/?$ index.php?id=$1 [QSA,L]
RewriteRule ^ index.php [L]