Greetings again!
I've got a rewrite rule, which works for my non-CouchCMS-managed pages:
RewriteCond %{REQUEST_URI} !(.*(theory).*)
RewriteRule ^(en|ru)/(.*)$ $2?locale=$1 [QSA,NC,L]
So, when I enter:
the file being launched is: example.php with $_GET['locale']='ru'
When I add these lines to example.php:
and launch http://domain.com/couch/gen_htaccess.php, then I copy the generated .htaccess lines to my .htaccess with abovementioned rules and the URL becomes:
So basically everything works, but I'm not very happy to see ?locale=ru in my browser. For some reason this happens to couchCMS-managed pages only.
The pages I'm speaking about here are placed in root directory and have translations managed via dublicated <cms:editable> sections.
Is there any way to fix this with a RewriteRule?
I've got a rewrite rule, which works for my non-CouchCMS-managed pages:
RewriteCond %{REQUEST_URI} !(.*(theory).*)
RewriteRule ^(en|ru)/(.*)$ $2?locale=$1 [QSA,NC,L]
So, when I enter:
- Code: Select all
http://domain.com/ru/example.php,
the file being launched is: example.php with $_GET['locale']='ru'
When I add these lines to example.php:
- Code: Select all
<?PHP require_once 'couch/cms.php'; ?>
<?PHP COUCH::invoke(); ?>
and launch http://domain.com/couch/gen_htaccess.php, then I copy the generated .htaccess lines to my .htaccess with abovementioned rules and the URL becomes:
- Code: Select all
http://domain.com/example/?locale=ru
So basically everything works, but I'm not very happy to see ?locale=ru in my browser. For some reason this happens to couchCMS-managed pages only.
The pages I'm speaking about here are placed in root directory and have translations managed via dublicated <cms:editable> sections.
Is there any way to fix this with a RewriteRule?