I am running a fresh installation of 1.4.1 CMS with MLE added. It is working fine as long as I am using standard urls with query strings. When I switch to pretty urls - I can't get it working properly, only one language version is displayed when clicking on flags although the url changes. I have played a lot with mod_rewrite and other various settings, I've red all related post on this forum but the problem persist. What am I missing here. Any help is very welcomed.
You can see the page at http://lookbook.nazwa.pl/personalstylist2/
Following are my settings. Releveant section of php.config:
Code: Select all
#------------
#URL Settings
#------------
$config['assume_mod_rewrite'] = true;
$config['page_extension'] = '/';
$config['internal_pretty_urls'] = true;
$config['use_hierarchy'] = true;
$config['query_var'] = 'page';
Code: Select all
# Read FAQ: http://wiki.cmsmadesimple.org/index.php/FAQ/Installation/Pretty_URLs also
Options +FollowSymLinks
RewriteEngine on
# Change to RewriteBase /cms/ if CMSMS is installed in this subdirectory
RewriteBase /personalstylist2/
# 301 Redirect all requests that don't contain a dot or trailing slash to
# include a trailing slash
RewriteCond %{REQUEST_URI} !/$
RewriteCond %{REQUEST_URI} !\.
RewriteRule ^(.*) %{REQUEST_URI}/ [R=301,L]
# Rewrites urls in the form of /parent/child/
# but only rewrites if the requested URL is not a file or directory
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# COMMENT Monolingual rule and UNCOMMENT MLE rule
#RewriteRule ^(.+)$ index.php?page=$1 [QSA]
RewriteRule ^([^/]+)/(.*)$ index.php?page=$2&hl=$1 [QSA]
Code: Select all
<?php
define('DEFAULT_LANG', 'pl_PL');
$hls = array(
'en_US' => array(
'block'=>'en',
'flag'=>'<img src="/personalstylist2/images/lang/us.png" style="border:0; opacity:1;" alt="English" />',
'text'=>'English',
),
'pl_PL' => array(
'block'=>'pl',
'flag'=>'<img src="/personalstylist2/images/lang/pl.png" style="border:0; opacity:1;" alt="Polski" />',
'text'=>'Polski',
'locale'=>'pl_PL.utf8@euro',
),
);
?>